MINOR: Client state machine fix for transition to stable on initial empty assignment#15033
Conversation
| // This is the case where a member was RECONCILING an unresolved | ||
| // assignment that was removed by the broker in a following assignment. |
There was a problem hiding this comment.
This comment is not completely correct anymore. It only describes one case of the two. Doesn't this comment duplicate the comment above the if-statement.
I really strongly recommend to not use too many inline comments. They are really hard to properly maintain as we can see here.
There was a problem hiding this comment.
You're right, the comment is a dup of the one above and was not accurate anymore, removed (agree with the suggestion of not overdoing the inline comments, noted)
| } | ||
|
|
||
| @Test | ||
| public void testMemberJoiningTransitionsToStableWhenReceivingEmptyAssignment() { |
There was a problem hiding this comment.
Is there also a test for the second case? I skimmed over the test class but could not find one.
There was a problem hiding this comment.
Yes, there is, testNewEmptyAssignmentReplacesPreviousOneWaitingOnMetadata covers the other case.
|
Thanks a lot for the review @cadonna . All comments addressed. |
|
@lianetm |
|
@cadonna those are unrelated, they had been failing in other PRs as well and are now disabled (disabled with @philipnee latest PR that I just merged here along with trunk latest changes). Thanks! |
|
Test failures seem unrelated. I checked around |
…mpty assignment (#15033) This includes a fix for ensuring that a member transitions to STABLE when joining a group, in the case where it receives an initial empty assignment. Reviewer: Bruno Cadonna <cadonna@apache.org>
…mpty assignment (apache#15033) This includes a fix for ensuring that a member transitions to STABLE when joining a group, in the case where it receives an initial empty assignment. Reviewer: Bruno Cadonna <cadonna@apache.org>
…mpty assignment (apache#15033) This includes a fix for ensuring that a member transitions to STABLE when joining a group, in the case where it receives an initial empty assignment. Reviewer: Bruno Cadonna <cadonna@apache.org>
…mpty assignment (apache#15033) This includes a fix for ensuring that a member transitions to STABLE when joining a group, in the case where it receives an initial empty assignment. Reviewer: Bruno Cadonna <cadonna@apache.org>
…mpty assignment (apache#15033) This includes a fix for ensuring that a member transitions to STABLE when joining a group, in the case where it receives an initial empty assignment. Reviewer: Bruno Cadonna <cadonna@apache.org>
This includes a fix for ensuring that a member transitions to STABLE when joining a group, in the case where it receives an initial empty assignment.