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

[MINOR] Fix zookeeper session expiration bug #10671

Merged

Conversation

linliu-code
Copy link
Contributor

@linliu-code linliu-code commented Feb 14, 2024

Change Logs

KafkaTestUtils was created as a static variable and only initialized at the start of a test class.
A test class may contain multiple test methods. If the zookeeper session expires during the middle,
some test methods would fail. And we did see these failures happened in Azure CI.

To solve this problem, we recreated the KafkaTestUtils object for each test method instead.

Impact

Fix the session expiration error.

Risk level (write none, low medium or high below)

None.

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@linliu-code linliu-code force-pushed the MINOR_fix_zookeeper_session_bug branch 10 times, most recently from 54a3aa1 to a5ef9c5 Compare February 15, 2024 18:39
@linliu-code linliu-code force-pushed the MINOR_fix_zookeeper_session_bug branch from a5ef9c5 to 1ec6943 Compare February 15, 2024 21:21
@hudi-bot
Copy link

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Copy link
Member

@vinothchandar vinothchandar left a comment

Choose a reason for hiding this comment

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

LGTM

@vinothchandar vinothchandar merged commit 7058d12 into apache:master Feb 16, 2024
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants