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

Fix flaky couchbase tests #12262

Merged
merged 1 commit into from
Sep 16, 2024
Merged

Fix flaky couchbase tests #12262

merged 1 commit into from
Sep 16, 2024

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Sep 16, 2024

https://ge.opentelemetry.io/s/xz3tis5zw7xec/tests/task/:instrumentation:couchbase:couchbase-2.6:javaagent:test/details/io.opentelemetry.javaagent.instrumentation.couchbase.v2_6.springdata.CouchbaseSpringTemplate26Test/remove(CouchbaseTemplate)%5B2%5D?expanded-stacktrace=WyIxIiwiMCJd&top-execution=1
During java conversion I made attributes that were previously optional, like network.type, required. This made tests flaky because there is race condition in the instrumentation where virtual field could be read before the value is set on another thread. Hopefully moving setting virtual field to the start of the method resolves the issue.

@laurit laurit requested a review from a team September 16, 2024 14:32
@trask trask merged commit 9936812 into open-telemetry:main Sep 16, 2024
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants