-
Notifications
You must be signed in to change notification settings - Fork 14.5k
MINOR: Fix the handling source topic deletion integration test #20155
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
base: trunk
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @RaidenE1. Left some comments.
TimeUnit.SECONDS.sleep(5); | ||
assertThat(calledUncaughtExceptionHandler1.get(), is(true)); | ||
assertThat(calledUncaughtExceptionHandler2.get(), is(true)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about doing this instead of always sleeping for a fixed time
TimeUnit.SECONDS.sleep(5); | |
assertThat(calledUncaughtExceptionHandler1.get(), is(true)); | |
assertThat(calledUncaughtExceptionHandler2.get(), is(true)); | |
TestUtils.waitForCondition( | |
() -> calledUncaughtExceptionHandler1.get() && calledUncaughtExceptionHandler2.get(), | |
TIMEOUT, | |
() -> "......Error Message......" | |
); |
@@ -42,10 +42,13 @@ | |||
import java.util.Locale; | |||
import java.util.Properties; | |||
import java.util.concurrent.atomic.AtomicBoolean; | |||
import java.util.concurrent.CountDownLatch; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why import this?
|
||
import static org.apache.kafka.streams.utils.TestUtils.safeUniqueTestName; | ||
import static org.hamcrest.CoreMatchers.is; | ||
import static org.hamcrest.MatcherAssert.assertThat; | ||
import static org.junit.jupiter.api.Assertions.assertTrue; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
Fix an integration test error:
In the old version, the
HandlingSouceTopicDeleteIntegrationTest
expects state change toERROR
in both old and new protocols, but in the new protocol, we should expectsMissingSourceTopicException
.