-
Notifications
You must be signed in to change notification settings - Fork 5k
Closed
Labels
Team:Elastic-Agent-Data-PlaneLabel for the Agent Data Plane teamLabel for the Agent Data Plane teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.
Milestone
Description
Flaky Test
- Test Name: TestMetricbeatOTelMultipleReceiversE2E
- Link:
require.NoError(t, err) - Branch: main
- Artifact Link: https://buildkite.com/organizations/elastic/analytics/suites/beats/tests/8e53406e-f6c4-8200-a234-e52417deb87c?period=1day
- Notes: This test passed the CI checks in the original PR, but it has a high failure rate in subsequent runs. It was introduced in otel: add mbreceiver E2E test #45427.
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
Team:Elastic-Agent-Data-PlaneLabel for the Agent Data Plane teamLabel for the Agent Data Plane teamflaky-testUnstable or unreliable test cases.Unstable or unreliable test cases.