Skip to content

[Flaky Test] x-pack/metricbeat/tests/integration TestMetricbeatOTelMultipleReceiversE2E and TestFilebeatOTelMultipleReceiversE2E #45631

@mauri870

Description

@mauri870

Flaky Test

From the error message it seems to be an error returned by Elasticsearch, but I'm pretty sure this is a problem with two receivers on the same process, likely a global state issue somewhere. This is reinforced by the fact that the debugexporter only printed a single log, implying that the second receiver didn't even start.. I'll do a deeper investigation and post the results here.

Stack Trace

=== RUN   TestMetricbeatOTelMultipleReceiversE2E
    otel_test.go:428: 
        	Error Trace:	/opt/buildkite-agent/builds/bk-agent-prod-aws-1753810346968905340/elastic/beats-xpack-metricbeat/x-pack/metricbeat/tests/integration/otel_test.go:428
        	            				/opt/buildkite-agent/.asdf/installs/golang/1.24.4/go/src/runtime/asm_arm64.s:1223
        	Error:      	Received unexpected error:
        	            	error in HTTP query: non-200 return code: 503, response: '[503 Service Unavailable] {
        	            	  "error" : {
        	            	    "root_cause" : [
        	            	      {
        	            	        "type" : "no_shard_available_action_exception",
        	            	        "reason" : "[e042caa97a13][127.0.0.1:9300][indices:data/read/search[phase/query]]"
        	            	      }
        	            	    ],
        	            	    "type" : "search_phase_execution_exception",
        	            	    "reason" : "all shards failed",
        	            	    "phase" : "query",
        	            	    "grouped" : true,
        	            	    "failed_shards" : [
        	            	      {
        	            	        "shard" : 0,
        	            	        "index" : ".ds-logs-integration-0169693e52434ebda3ee7b2ff1760d36-2025.07.29-000001",
        	            	        "node" : "KR2_yrWbTP6n41nvRjVFXA",
        	            	        "reason" : {
        	            	          "type" : "no_shard_available_action_exception",
        	            	          "reason" : "[e042caa97a13][127.0.0.1:9300][indices:data/read/search[phase/query]]"
        	            	        }
        	            	      }
        	            	    ]
        	            	  },
        	            	  "status" : 503
        	            	}
        	            	'
        	Test:       	TestMetricbeatOTelMultipleReceiversE2E
    otel_test.go:416: 
        	Error Trace:	/opt/buildkite-agent/builds/bk-agent-prod-aws-1753810346968905340/elastic/beats-xpack-metricbeat/x-pack/metricbeat/tests/integration/otel_test.go:416
        	Error:      	Condition never satisfied
        	Test:       	TestMetricbeatOTelMultipleReceiversE2E
        	Messages:   	expected at least 1 log for each receiver

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions