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

DBZ-6841 Fix randomly failing BaseSourceTaskTest#verifyTaskRestartsSuccessfully #4808

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

vjuranek
Copy link
Member

@vjuranek vjuranek commented Aug 28, 2023

Test was passing locally and in the CI as the start was very fast and after the first start retriable wait condition wasn't met, so we actually sleep and while the sleep we doesn't increment the counter and the state is still RESTARTING. On slower machines when start takes longer time and we don't wait, the test is actualy wrong. The correct test either should remove last assert for RESTARTING state or increase number of failures and add a sleep time after initial start, so that there is no retry wait time.
This PR implements the later option.

https://issues.redhat.com/browse/DBZ-6841

…ccessfully

Test was passing locally and in the CI as the start was very fast and
after the first start retriable wait condition wasn't met, so we
actually sleep and while the sleep we doesn't increment the counter
and the state is still `RESTARTING`. On slower machines when start
takes longer time and we don't wait, the test is actualy wrong.
The correct test either should remove last assert for `RESTARTING`
state or increase number of failures and add a sleep time after initial
start, so that there is no retry wait time.
This PR implements the later option.
@rk3rn3r rk3rn3r changed the title DBZ-6841 Fix randomly failing BaseSourceTaskTest#verifyTaskRestartsSu… DBZ-6841 Fix randomly failing BaseSourceTaskTest#verifyTaskRestartsSuccessfully Aug 28, 2023
@obabec
Copy link
Contributor

obabec commented Aug 28, 2023

/packit test --labels mongodb

@rk3rn3r
Copy link
Member

rk3rn3r commented Aug 29, 2023

Thx a lot for the quick evaluation of the root cause and the quick fix.

@rk3rn3r rk3rn3r merged commit c2b4831 into debezium:main Aug 29, 2023
31 of 33 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
3 participants