-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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: Relax Unsupported Version check on BrokerCompatibilityTest #5170
MINOR: Relax Unsupported Version check on BrokerCompatibilityTest #5170
Conversation
A little unclear to me. The consumer should be backward compatible and not throw any |
Interesting... Why do you say the new poll call increases the likelihood of the issue? Or is that just empirical? FWIW, the change looks good to me. |
@mjsax @vvcephei Here is what I'm suspecting: first of all, this race condition should have been existed since day one because there is no synchronization between In the old API, we will call |
…roker-incompatible-check
After some further discussion with @hachikuji I've decided to change the test, to relax the expect error message so that both producer's error:
and consumer's error
are expected. |
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.
LGTM overall.
Can we get a new system test for this?
Yes, https://jenkins.confluent.io/job/system-test-kafka-branch-builder/1785/ has just passed (ran 5 times). |
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.
LGTM.
…ache#5170) In BrokerCompatibilityTest.java, when older versioned broker is used (0.10.1, 0.10.2), LIST_OFFSET is not supported as well. Hence in the verification phase, there is a possibility that consumer hit the UnsupportedVersionException earlier than Streams actually hits it: org.apache.kafka.common.errors.UnsupportedVersionException: The broker does not support LIST_OFFSETS with version in range [2,3]. The supported range is [0,1]. While the test is waiting for org.apache.kafka.common.errors.UnsupportedVersionException: Cannot create a v0 FindCoordinator request because we require features supported only in 1 or later. Both are valid errors to expect (the former is from consumer while the latter is from producer of the streams app). Reviewers: John Roesler <[email protected]>, Matthias J. Sax <[email protected]>, Bill Bejeck <[email protected]>
In BrokerCompatibilityTest.java, when older versioned broker is used (0.10.1, 0.10.2), LIST_OFFSET is not supported as well. Hence in the verification phase, there is a possibility that consumer hit the UnsupportedVersionException earlier than Streams actually hits it:
While the test is waiting for
Call seek with specific offset would avoid sending LIST_OFFSET.
Committer Checklist (excluded from commit message)