You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "FrankYang0529 (via GitHub)" <gi...@apache.org> on 2025/02/28 13:37:49 UTC

[PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

FrankYang0529 opened a new pull request, #19058:
URL: https://github.com/apache/kafka/pull/19058

   In https://github.com/apache/kafka/pull/16848, we added `kraft.version` to finalized features and got finalized features outside controller event handling thread. This may make finalized features stale when processing `registerBroker` event. Also, some cases like `QuorumControllerTest.testBalancePartitionLeaders` become flaky cause of outdated MV. This PR moves finalized features back to controller event handling thread to avoid the error.
   
   Reviewers: Ismael Juma <ij...@apache.org>, Jun Rao <ju...@gmail.com>, Colin P. McCabe <cm...@apache.org>, Chia-Ping Tsai <ch...@gmail.com>
   
   (cherry picked from commit 88a23dab3ea6f76cc32066066149ce7843bf24ab)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "FrankYang0529 (via GitHub)" <gi...@apache.org>.
FrankYang0529 commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2692542765

   Hi @junrao, these test cases can pass with zelu-1.8 and Amazon Corretto 21 on my laptop, so I will trigger CI to check the result again. Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "junrao (via GitHub)" <gi...@apache.org>.
junrao commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2695192420

   Thanks, David and Frank. Closing the PR. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2696500348

   JDK 17 pass


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "chia7712 (via GitHub)" <gi...@apache.org>.
chia7712 merged PR #19058:
URL: https://github.com/apache/kafka/pull/19058


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2693750609

   @FrankYang0529 Do we also need a PR for 4.0 or was it already cherry-picked?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "FrankYang0529 (via GitHub)" <gi...@apache.org>.
FrankYang0529 commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2693758227

   @dajac, I think we can just cherry-picked it, because there is no conflict.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "FrankYang0529 (via GitHub)" <gi...@apache.org>.
FrankYang0529 commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2695962967

   @junrao, there is conflict in 3.9, so I created this PR. In 3.9 source code, the finalized features are still outside controller event handling thread, so I reopen the PR. Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "dajac (via GitHub)" <gi...@apache.org>.
dajac commented on PR #19058:
URL: https://github.com/apache/kafka/pull/19058#issuecomment-2694563500

   > @dajac, I think we can just cherry-picked it, because there is no conflict.
   
   Sounds good. I did it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997) [kafka]

Posted by "junrao (via GitHub)" <gi...@apache.org>.
junrao closed pull request #19058: KAFKA-18844: Stale features information in QuorumController#registerBroker (#18997)
URL: https://github.com/apache/kafka/pull/19058


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org