Flaky-test: C++ ProducerTest.testSendAsyncCloseAsyncConcurrentlyWithLazyProducers
See original GitHub issueProducerTest.testSendAsyncCloseAsyncConcurrentlyWithLazyProducers fails sporadically.
2022-01-20 05:08:14.347 INFO [139723758618368] ProducerTest:208 | Closing
2022-01-20 05:08:14.347 INFO [139723758618368] ProducerImpl:621 | [persistent://public/default/testProducerIsConnectedPartitioned-1642655293-partition-7, standalone-0-401] Closing producer for topic persistent://public/default/testProducerIsConnectedPartitioned-1642655293-partition-7
2022-01-20 05:08:14.347 INFO [139723758618368] ProducerTest:210 | Close called
2022-01-20 05:08:14.347 INFO [139724043835136] ProducerImpl:664 | [persistent://public/default/testProducerIsConnectedPartitioned-1642655293-partition-7, standalone-0-401] Closed producer
2022-01-20 05:08:14.347 INFO [139723758618368] ProducerTest:215 | Closed
/pulsar/pulsar-client-cpp/tests/ProducerTest.cc:236: Failure
Value of: res
Actual: Ok
Expected: ResultAlreadyClosed
Which is: AlreadyClosed
[ FAILED ] ProducerTest.testSendAsyncCloseAsyncConcurrentlyWithLazyProducers (3431 ms)
[----------] 1 test from ProducerTest (3431 ms total)
[----------] Global test environment tear-down
[==========] 1 test from 1 test case ran. (3435 ms total)
[ PASSED ] 0 tests.
[ FAILED ] 1 test, listed below:
[ FAILED ] ProducerTest.testSendAsyncCloseAsyncConcurrentlyWithLazyProducers
full logs at https://gist.github.com/lhotari/f37aefd7919f030399f3a5b7020baa23
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
[C++] Remove the flaky and meaningless tests #15271 - GitHub
is called in another thread must complete with ResultAlreadyClosed . It's flaky because the synchronization between two threads is not strict. This test...
Read more >FlakyTest - Android Developers
Stay organized with collections Save and categorize content based on your preferences. Dismiss Got it. Kotlin |Java. public abstract @interface FlakyTest
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take a look when I’m free.
BTW, this flaky test might be introduced from https://github.com/apache/pulsar/pull/11570, it would be better if @Vanlightly could take a look first.
I found this test is just wrong. See https://github.com/apache/pulsar/blob/aef5f6d5e2d44f84c9c358f1d9dd9db1108a9d99/pulsar-client-cpp/tests/ProducerTest.cc#L236-L238
If we changed the code to
The test will fail because the send results are all
ResultAlreadyClosed
, not only fori >= closedAt
.