This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 35d8762756ff CAMEL-26890: camel-opentelemetry - Disable flaky
AsyncCxfTest (#29721)
35d8762756ff is described below
commit 35d8762756ffbe076030549ec8254ec25ae8f76a
Author: Aurélien Pupier <[email protected]>
AuthorDate: Thu Nov 12 21:46:29 2026 +0100
CAMEL-26890: camel-opentelemetry - Disable flaky AsyncCxfTest (#29721)
The test fails intermittently because OpenTelemetry scopes are
thread-bound, while with an async producer the scope is closed on the route
thread and the span is deactivated on the callback thread.
camel-tracing/camel-opentelemetry are deprecated because this design does not
fit Camel's threading model (see design/tracing.adoc), so the test is disabled
instead of fixing the old implementation. The same scenario is covered by
AsyncCXFTest in camel-opentelemetry2.
IBM Bob 2.2.1 on behalf of apupier.
Co-authored-by: IBM Bob 2.2.1
---
.../src/test/java/org/apache/camel/opentelemetry/AsyncCxfTest.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/components/camel-opentelemetry/src/test/java/org/apache/camel/opentelemetry/AsyncCxfTest.java
b/components/camel-opentelemetry/src/test/java/org/apache/camel/opentelemetry/AsyncCxfTest.java
index 8d5bdc8462c6..9282a926c167 100644
---
a/components/camel-opentelemetry/src/test/java/org/apache/camel/opentelemetry/AsyncCxfTest.java
+++
b/components/camel-opentelemetry/src/test/java/org/apache/camel/opentelemetry/AsyncCxfTest.java
@@ -20,10 +20,13 @@ import org.apache.camel.RoutesBuilder;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mock.MockEndpoint;
import org.apache.camel.test.AvailablePortFinder;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.RegisterExtension;
@Deprecated(since = "4.19.0")
+@Disabled("CAMEL-26890: flaky, camel-opentelemetry relies on thread-bound
scopes which Camel async processing cannot guarantee,"
+ + " see design/tracing.adoc. Replaced by camel-opentelemetry2")
class AsyncCxfTest extends CamelOpenTelemetryTestSupport {
@RegisterExtension