question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Intermittent test failures in AdminApiTest.testIncrementPartitionsOfTopic

See original GitHub issue

As seen in https://builds.apache.org/job/pulsar-pull-request/org.apache.pulsar$pulsar-broker/59/testReport/junit/org.apache.pulsar.broker.admin/AdminApiTest/testIncrementPartitionsOfTopic/

java.lang.AssertionError: expected [8] but found [12]
	at org.apache.pulsar.broker.admin.AdminApiTest.testIncrementPartitionsOfTopic(AdminApiTest.java:1761)

Apparently, this failure is causing other tests in AdminApiTests to fail afterwards:

org.apache.pulsar.broker.admin.AdminApiTest.testIncrementPartitionsOfTopic
org.apache.pulsar.broker.admin.AdminApiTest.testIncrementPartitionsOfTopic
org.apache.pulsar.broker.admin.AdminApiTest.testNamespaceSplitBundle
org.apache.pulsar.broker.admin.AdminApiTest.testNamespaceUnloadBundle
org.apache.pulsar.broker.admin.AdminApiTest.testPersistentTopicsExpireMessages
org.apache.pulsar.broker.admin.AdminApiTest.testPulsarAdminForUriAndUrlEncoding
org.apache.pulsar.broker.admin.AdminApiTest.testPulsarAdminForUriAndUrlEncoding

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
rdhabaliacommented, Aug 7, 2017

It seems it is not the same assert-failure but it failed with 500 due to PulsarService gets shutdown in between the test and while running the test I can see exception:

org.apache.pulsar.broker.service.BrokerServiceException$PersistenceException: org.apache.bookkeeper.mledger.ManagedLedgerException: ManagedLedger prop-xyz/use/ns1/persistent/topic_%2B%26*%25%7B%7D%28%29+%5C%2F%24%40%23%5E%25-partition-5 has already been closed

I can also see that BatchMessageTest. testBatchAndNonBatchCumulativeAcks runs on the same process and it might be closing pulsar-service.

Checking what exactly happened…

0reactions
rdhabaliacommented, Sep 22, 2017

#778 will fix this issue. so, closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging Intermittent Test Failures - Firefox Source Docs
Intermittents are test failures which happen intermittently, in a seemingly random way. Often you'll write a test that passes fine locally on your...
Read more >
How to fix intermittent test failures | Sergey Potapov (greyblake)
Try to run sequence A, B, C, D, E locally to confirm the hypothesis. Make sure that tests run exactly in the specified...
Read more >
Expected Failures | Apple Developer Documentation
If your test fails intermittently and you don't want the test system to record an unmatched XCTExpectFailure call as a test failure, set...
Read more >
How to deal with flaky tests that have intermittent failures?
Here's the general approach we're currently implementing in our team: Measure flakiness to identify unstable tests. One way is to move suspected tests...
Read more >
Fixing Intermittent Failing Tests - Collective Idea
Some tricks to help you fix tests that sometimes fail. ... (Rails with RSpec and Cucumber) that has a variety of intermittent test...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found