Skip to content

Conversation

RaidenE1
Copy link
Contributor

@RaidenE1 RaidenE1 commented Oct 1, 2025

AdjustStreamThreadCountTest becomes flaky since this upgrade. The root cause is the timeout is not enough, for every remove and create the kafka stream thread, it takes around 10s. Should takes more on CI. I reduce the times of remove & create kafka streams and add longer timeout.

@github-actions github-actions bot added triage PRs from the community streams tests Test fixes (including flaky tests) small Small PRs labels Oct 1, 2025
@RaidenE1
Copy link
Contributor Author

RaidenE1 commented Oct 1, 2025

/gemini review

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaidenE1 thanks for this fix!

one.start();

assertTrue(latch.await(30, TimeUnit.SECONDS));
assertTrue(latch.await(90, TimeUnit.SECONDS));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why increase the timeout when the number of threads is reduced?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @chia7712. I think this is not the right way to fix the test, also it's taken by someone else in the community. I guess I'll close this PR. Thanks!

final Thread one = adjustCountHelperThread(kafkaStreams, 4, latch);
final Thread two = adjustCountHelperThread(kafkaStreams, 6, latch);
final Thread one = adjustCountHelperThread(kafkaStreams, 1, latch);
final Thread two = adjustCountHelperThread(kafkaStreams, 1, latch);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is the right change? -- The method name literally says MultipleTimes so there seems to be an intent to add/remove threads multiple times. If we reduce this to one, it seems we are removing intended test coverage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Small PRs streams tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants