Skip to content

Commit

Permalink
MINOR: Fix flaky ProducerIdManagerTest.testUnrecoverableErrors (apach…
Browse files Browse the repository at this point in the history
…e#14688)

We add a sleep until RetryBackoffMs to ensure that next call to generateProducerId() is triggered.

Reviewers: Divij Vaidya <diviv@amazon.com>
  • Loading branch information
ex172000 authored and mjsax committed Nov 22, 2023
1 parent 9990b61 commit 71dd669
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -195,6 +195,7 @@ class ProducerIdManagerTest {
verifyNewBlockAndProducerId(manager, new ProducerIdsBlock(0, 0, 1), 0)

manager.error = error
time.sleep(RetryBackoffMs)
verifyFailure(manager)

manager.error = Errors.NONE
Expand Down

0 comments on commit 71dd669

Please sign in to comment.