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

CAMEL-18661: clean-ups #8911

Merged
merged 1 commit into from
Dec 16, 2022
Merged

CAMEL-18661: clean-ups #8911

merged 1 commit into from
Dec 16, 2022

Conversation

bvahdat
Copy link
Member

@bvahdat bvahdat commented Dec 16, 2022

As follow-up with #8713

@github-actions
Copy link
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

⚠️ Please note that the changes on this PR may be tested automatically.

If necessary Apache Camel Committers may access logs and test results in the job summaries!

@github-actions
Copy link
Contributor

Components tested:

Total Tested Failed ❌ Passed ✅
3 3 1 2

@github-actions
Copy link
Contributor

Components tested:

Total Tested Failed ❌ Passed ✅
3 3 0 3

@bvahdat
Copy link
Member Author

bvahdat commented Dec 16, 2022

Unfortunately we are dealing with a flaky test in CurrentSpanTest:

FE30905B2D30EEF-000000000000000A). Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[]

Message History (source location and message history is disabled)
---------------------------------------------------------------------------------------------------------------------------------------
Source                                   ID                             Processor                                          Elapsed (ms)
                                         route46/route46                from[asyncmock3://start]                                2205581

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[]
	at org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:45) ~[camel-api-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.support.AbstractExchange.setException(AbstractExchange.java:597) ~[camel-support-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.support.DefaultExchange.setException(DefaultExchange.java:27) ~[camel-support-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.support.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:68) ~[camel-support-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:392) ~[camel-base-engine-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:477) ~[camel-core-processor-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:181) ~[camel-base-engine-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.impl.engine.DefaultReactiveExecutor.schedule(DefaultReactiveExecutor.java:54) ~[camel-base-engine-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at org.apache.camel.processor.MulticastProcessor.lambda$schedule$1(MulticastProcessor.java:336) ~[camel-core-processor-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:829) ~[?:?]
Caused by: org.opentest4j.AssertionFailedError: expected: <false> but was: <true>
	at org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151) ~[junit-jupiter-api-5.9.1.jar:5.9.1]
	at org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132) ~[junit-jupiter-api-5.9.1.jar:5.9.1]
	at org.junit.jupiter.api.AssertFalse.failNotFalse(AssertFalse.java:63) ~[junit-jupiter-api-5.9.1.jar:5.9.1]
	at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:36) ~[junit-jupiter-api-5.9.1.jar:5.9.1]
	at org.junit.jupiter.api.AssertFalse.assertFalse(AssertFalse.java:31) ~[junit-jupiter-api-5.9.1.jar:5.9.1]
	at org.junit.jupiter.api.Assertions.assertFalse(Assertions.java:228) ~[junit-jupiter-api-5.9.1.jar:5.9.1]
	at org.apache.camel.opentelemetry.CurrentSpanTest$1.lambda$configure$1(CurrentSpanTest.java:232) ~[test-classes/:?]
	at org.apache.camel.support.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:65) ~[camel-support-3.20.0-SNAPSHOT.jar:3.20.0-SNAPSHOT]
	... 10 more

The same behaviour has been also observed by #8713 where the a second run of the tests were successful without any code changes (with pipeline being manually triggered by @davsclaus):

Screen Shot 2022-12-16 at 15 32 37

Locally using JDK 11, 17, or 19 I am not able to reproduce the failure which happens at the following line:

https://github.com/apache/camel/blob/camel-3.20.0/components/camel-opentelemetry/src/test/java/org/apache/camel/opentelemetry/CurrentSpanTest.java#L231

I also did the same and now all tests are passing. So I'm gonne merge this PR today if no objections, as the issue is out of the scope of this PR and needs to be looked into separately.

@lmolkova
Copy link
Contributor

@bvahdat thank you! I'll take a look at flaky test.

@bvahdat
Copy link
Member Author

bvahdat commented Dec 16, 2022

@bvahdat thank you! I'll take a look at flaky test.

Thanks @lmolkova for looking into this. So I merge this one now, feel free to provide a PR against the main branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants