17:42:59 --- FAIL: TestFetch (115.91s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:81
17:42:59 Error: Received unexpected error:
17:42:59 Put http://elasticsearch:9200/rats/_ccr/follow: EOF
17:42:59 Test: TestFetch
17:42:59 --- FAIL: TestFetch/ccr (0.00s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/ccr
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/ccr
17:42:59 --- FAIL: TestFetch/cluster_stats (0.00s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/cluster_stats
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/cluster_stats
17:42:59 --- FAIL: TestFetch/index (0.00s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/index
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/index
17:42:59 --- FAIL: TestFetch/index_recovery (0.01s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/index_recovery
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/index_recovery
17:42:59 --- FAIL: TestFetch/index_summary (0.01s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/index_summary
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/index_summary
17:42:59 --- FAIL: TestFetch/ml_job (0.01s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/ml_job
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/ml_job
17:42:59 --- FAIL: TestFetch/node (0.01s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error making http request: Get http://elasticsearch:9200/_nodes/_local: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/node
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/node
17:42:59 --- FAIL: TestFetch/node_stats (0.00s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error making http request: Get http://elasticsearch:9200/_nodes/_local/stats: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/node_stats
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/node_stats
17:42:59 --- FAIL: TestFetch/shard (0.00s)
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:89
17:42:59 Error: Should be empty, but was [error determining if connected Elasticsearch node is master: error making http request: Get http://elasticsearch:9200/_nodes/_local/nodes: dial tcp 172.18.0.7:9200: connect: connection refused]
17:42:59 Test: TestFetch/shard
17:42:59 assertions.go:256:
17:42:59 Error Trace: elasticsearch_integration_test.go:90
17:42:59 Error: Should NOT be empty, but was []
17:42:59 Test: TestFetch/shard
17:42:59 Killing metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_http_1 ...
17:42:59
17:42:59 Killing metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_http_1 ... done
17:42:59 Killing metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_haproxy_1 ...
17:42:59
17:42:59 Killing metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_haproxy_1 ... done
17:42:59 Building elasticsearch
17:42:59 Step 1/2 : FROM docker.elastic.co/elasticsearch/elasticsearch:6.6.0
17:42:59 ---> 13aa43015aa1
17:42:59 Step 2/2 : HEALTHCHECK --interval=1s --retries=300 CMD curl -f http://localhost:9200/_xpack/license
17:42:59 ---> Using cache
17:42:59 ---> 92eb12fcce35
17:42:59 Successfully built 92eb12fcce35
17:42:59 Successfully tagged metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_elasticsearch:latest
17:42:59 Recreating metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_elasticsearch_1 ...
17:42:59
17:42:59 Recreating metricbeatb8f075ca3ba9f0ca8d77c37c7ab1a9ce06333331_elasticsearch_1 ... done
17:42:59 FAIL
17:42:59 coverage: 14.4% of statements
17:42:59 FAIL github.com/elastic/beats/metricbeat/module/elasticsearch 163.051s
Flaky Test
Stack Trace