Skip to content

MINOR: fix flaky KRaft-related tests#13543

Merged
mumrah merged 1 commit into
apache:trunkfrom
cmccabe:cmccabe_2023-04-11_fix_test_issues
Apr 14, 2023
Merged

MINOR: fix flaky KRaft-related tests#13543
mumrah merged 1 commit into
apache:trunkfrom
cmccabe:cmccabe_2023-04-11_fix_test_issues

Conversation

@cmccabe

@cmccabe cmccabe commented Apr 11, 2023

Copy link
Copy Markdown
Contributor

In SharedServer, fix some cases where a volatile variable could change to null while we were using
it, during shutdown. This is mainly a junit test issue, although it could also cause ugly error
messages during shutdown when running the server in a production context.

Fix a race in KafkaEventQueueTest.testSize.

@cmccabe cmccabe added the kraft label Apr 11, 2023
@cmccabe cmccabe changed the title MINOR: fix some TOCTOU issues in SharedServer MINOR: fix flaky KRaft-related tests Apr 12, 2023
cmccabe added a commit to cmccabe/kafka that referenced this pull request Apr 12, 2023
In SharedServer, fix some cases where a volatile variable could change to null while we were using
it, during shutdown. This is mainly a junit test issue, although it could also cause ugly error
messages during shutdown when running the server in a production context.

Fix a race in KafkaEventQueueTest.testSize.
@cmccabe
cmccabe force-pushed the cmccabe_2023-04-11_fix_test_issues branch from 7cdb5a3 to aa77656 Compare April 12, 2023 19:12
In SharedServer, fix some cases where a volatile variable could change to null while we were using
it, during shutdown. This is mainly a junit test issue, although it could also cause ugly error
messages during shutdown when running the server in a production context.

Fix a race in KafkaEventQueueTest.testSize.
@cmccabe
cmccabe force-pushed the cmccabe_2023-04-11_fix_test_issues branch from aa77656 to 9a53315 Compare April 14, 2023 17:09
@mumrah
mumrah merged commit cfd0503 into apache:trunk Apr 14, 2023
@cmccabe
cmccabe deleted the cmccabe_2023-04-11_fix_test_issues branch April 14, 2023 17:40
@ijuma

ijuma commented Apr 15, 2023

Copy link
Copy Markdown
Member

Cherry-picking this to 3.5.

ijuma pushed a commit that referenced this pull request Apr 15, 2023
In SharedServer, fix some cases where a volatile variable could change to null while we were using
it, during shutdown. This is mainly a junit test issue, although it could also cause ugly error
messages during shutdown when running the server in a production context.

Fix a race in KafkaEventQueueTest.testSize.

Reviewers: David Arthur <mumrah@gmail.com>
showuon pushed a commit that referenced this pull request May 15, 2023
In SharedServer, fix some cases where a volatile variable could change to null while we were using
it, during shutdown. This is mainly a junit test issue, although it could also cause ugly error
messages during shutdown when running the server in a production context.

Fix a race in KafkaEventQueueTest.testSize.

Reviewers: David Arthur <mumrah@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants