Skip to content
This repository has been archived by the owner on May 18, 2020. It is now read-only.

embedded-elasticsearch fails in Concourse CI/CD #74

Open
kgrygoryan-clgx opened this issue Nov 9, 2018 · 0 comments
Open

embedded-elasticsearch fails in Concourse CI/CD #74

kgrygoryan-clgx opened this issue Nov 9, 2018 · 0 comments

Comments

@kgrygoryan-clgx
Copy link

kgrygoryan-clgx commented Nov 9, 2018

Hi, I have a Spring Boot app that uses your library for integration testing. It works fine on local machine, but it fails if app runs in Concourse-Ci.

gradle file

testCompile('pl.allegro.tech:embedded-elasticsearch:2.7.0')

java class

private final EmbeddedElastic embeddedElastic = EmbeddedElastic.builder()
            .withSetting(PopularProperties.CLUSTER_NAME, "my-application")
            .withElasticVersion("6.3.2")
            .withSetting(PopularProperties.HTTP_PORT, 21121)
            .withEsJavaOpts("-Xms128m -Xmx512m")
            .withStartTimeout(5, MINUTES)
            .build().start();

error from Concourse

pl.allegro.tech.embeddedelasticsearch.EmbeddedElasticsearchStartupException: Failed to start elasticsearch. Check previous logs for details
        at pl.allegro.tech.embeddedelasticsearch.ElasticServer.waitForElasticToStart(ElasticServer.java:124)
        at pl.allegro.tech.embeddedelasticsearch.ElasticServer.start(ElasticServer.java:48)
        at pl.allegro.tech.embeddedelasticsearch.EmbeddedElastic.startElastic(EmbeddedElastic.java:75)
        at pl.allegro.tech.embeddedelasticsearch.EmbeddedElastic.start(EmbeddedElastic.java:57)

Memory printout of container

+ cat /proc/meminfo
MemTotal:        8173736 kB
MemFree:         1484472 kB
MemAvailable:    6173212 kB
Buffers:           79968 kB
Cached:          4179204 kB
SwapCached:        79940 kB
Active:          2880960 kB
Inactive:        2547404 kB
Active(anon):     525524 kB
Inactive(anon):   645952 kB
Active(file):    2355436 kB
Inactive(file):  1901452 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       8177080 kB
SwapFree:        7418540 kB
Dirty:              1464 kB
Writeback:             0 kB
AnonPages:       1133640 kB
Mapped:            34396 kB
Shmem:              2100 kB
Slab:            1012716 kB
SReclaimable:     734736 kB
SUnreclaim:       277980 kB
KernelStack:       23312 kB
PageTables:        17712 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    12263948 kB
Committed_AS:   11026348 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:     8163328 kB
DirectMap2M:      225280 kB
DirectMap1G:     1048576 kB
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant