Skip to content

[FLUSS-3878] Fix unstable TableChangeWatcherTest.testTableRegistrationChange - #3948

Open
bharathgunapati wants to merge 1 commit into
apache:mainfrom
bharathgunapati:FLUSS-3878-table-change-watcher-test
Open

[FLUSS-3878] Fix unstable TableChangeWatcherTest.testTableRegistrationChange#3948
bharathgunapati wants to merge 1 commit into
apache:mainfrom
bharathgunapati:FLUSS-3878-table-change-watcher-test

Conversation

@bharathgunapati

Copy link
Copy Markdown

Purpose

Fixes #3878.

testTableRegistrationChange altered table properties and then immediately dropped the table before verifying that TableChangeWatcher had emitted the table registration change event. Since watcher events are processed asynchronously, the drop event could be observed while the registration change event was still missing, making the test flaky.

Changes

Wait for the expected TableRegistrationChangeEvent after altering table properties before dropping the table.

Tests

  • ./mvnw -pl fluss-server -am -Dmaven.repo.local=.m2/repository -DfailIfNoTests=false -DskipITs -Dskip.archunit=true -Dspotless.check.skip=true -Dcheckstyle.skip=true -Dtest=TableChangeWatcherTest#testTableRegistrationChange test
  • ./mvnw -pl fluss-server -am -Dmaven.repo.local=.m2/repository -DfailIfNoTests=false -DskipITs -Dskip.archunit=true -Dspotless.check.skip=true -Dcheckstyle.skip=true -Dtest=TableChangeWatcherTest test

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.

[test] Unstable test TableChangeWatcherTest.testTableRegistrationChange

1 participant