Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky test] Error installing endpoint version_conflict_engine_exception causing flakiness in elastic agent tests #213337

Open
criamico opened this issue Mar 6, 2025 · 1 comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team

Comments

@criamico
Copy link
Contributor

criamico commented Mar 6, 2025

Related tickets: elastic/elastic-agent#4883 and elastic/elastic-agent#4158

The following errors appears inconstistently across tests, for instance
https://buildkite.com/elastic/elastic-agent/builds/18059#0195629b-e7ef-4ceb-be3b-057758e26fa6 from elastic/elastic-agent#7179

Error installing fleet package: Error installing endpoint 8.11.0: version_conflict_engine_exception
--
  | Root causes:
  | version_conflict_engine_exception: [data_frame_transform_state_and_stats-endpoint.metadata_united-default-8.11.0]: version conflict, document already exists (current version [1])
  | endpoint_security_test.go:437:
  | Error Trace:	C:/buildkite-agent/builds/bk-agent-prod-gcp-1741116562753477722/elastic/elastic-agent/testing/integration/endpoint_security_test.go:437
  | Error:      	Received unexpected error:
  | error installing fleet package: Error installing endpoint 8.11.0: version_conflict_engine_exception
  | Root causes:
  | version_conflict_engine_exception: [data_frame_transform_state_and_stats-endpoint.metadata_united-default-8.11.0]: version conflict, document already exists (current version [1])

Context

The error in Fleet seems to happen in the transforms install function in

and it's likely to to be caused by a race condition, as endpoint is installed/uninstalled several times in a short span: see this comment.

There was also a previous attempt to fix this issue:

@criamico criamico added the Team:Fleet Team label for Observability Data Collection Fleet team label Mar 6, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

No branches or pull requests

2 participants