Fix verification of version probing#10943
Conversation
showuon
left a comment
There was a problem hiding this comment.
This manually number bumping is error-prone. Might need a better way to handle it in the future. What do you think?
|
@showuon Agreed! All of us stumbled upon this. To be fair, usually we forget to adapt the test, but this time the author remembered to modify it, but missed to change one number. Such a situation could be changed by using variables. Let me have a stab at this. |
39f5568 to
1742c09
Compare
|
Wait, I'm confused. I definitely bumped the version number in this test in that PR you referenced (scroll down to the end of the changes, it's the last file). Did we for some reason bump the protocol version number again since then? |
|
Oh nevermind, I see, I just missed bumping one instance of it in the message. In that case this LGTM |
ableegoldman
left a comment
There was a problem hiding this comment.
Thanks for cleaning this up to use a variable and hopefully reduce how many times we have to fix this test going forward
There was a problem hiding this comment.
Could you add comments about why/when we need to bump this value? That can helps us from debugging this issue (again) in the future.
There was a problem hiding this comment.
Oh I actually added a comment in StreamsAssignmentProtocolVersions that describes everything you need to do when bumping the protocol number, and when you should/shouldn't bump it. It should cover everything but now the 1st instruction should be updated to say "bump the highest_version variable" instead of saying to update these messages directly @cadonna
There was a problem hiding this comment.
Good idea! I updated the instructions.
1742c09 to
8dc447f
Compare
|
Failed tests are unrelated and known to be flaky. |
Fixes and improves version probing in system test test_version_probing_upgrade().
Fixes and improves version probing in system test test_version_probing_upgrade().
|
@kkonstantine Cherry-picked to 3.0 since it fixes a consistently failing system test also there. |
Fixes and improves version probing in system test test_version_probing_upgrade().
Committer Checklist (excluded from commit message)