[ 
https://issues.apache.org/jira/browse/KAFKA-7965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16814015#comment-16814015
 ] 

ASF GitHub Bot commented on KAFKA-7965:
---------------------------------------

huxihx commented on pull request #6557: KAFKA-7965: Fix 
testRollingBrokerRestartsWithSmallerMaxGroup failure
URL: https://github.com/apache/kafka/pull/6557
 
 
   https://issues.apache.org/jira/browse/KAFKA-7965
   
   Most of the time, the group coordinator runs on broker 1. Occasionally the 
group coordinator will be placed on broker 2. If that's the case, the loop 
starting at line 320 have no chance to check and update `kickedOutConsumerIdx`. 
A quick fix is to safely do another round of loop to ensure 
`kickedOutConsumerIdx` always be checked after the last broker restart.
   
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Flaky Test 
> ConsumerBounceTest#testRollingBrokerRestartsWithSmallerMaxGroupSizeConfigDisruptsBigGroup
> ----------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-7965
>                 URL: https://issues.apache.org/jira/browse/KAFKA-7965
>             Project: Kafka
>          Issue Type: Bug
>          Components: clients, consumer, unit tests
>    Affects Versions: 2.2.0, 2.3.0
>            Reporter: Matthias J. Sax
>            Assignee: huxihx
>            Priority: Critical
>              Labels: flaky-test
>             Fix For: 2.3.0, 2.2.1
>
>
> To get stable nightly builds for `2.2` release, I create tickets for all 
> observed test failures.
> [https://jenkins.confluent.io/job/apache-kafka-test/job/2.2/21/]
> {quote}java.lang.AssertionError: Received 0, expected at least 68 at 
> org.junit.Assert.fail(Assert.java:88) at 
> org.junit.Assert.assertTrue(Assert.java:41) at 
> kafka.api.ConsumerBounceTest.receiveAndCommit(ConsumerBounceTest.scala:557) 
> at 
> kafka.api.ConsumerBounceTest.$anonfun$testRollingBrokerRestartsWithSmallerMaxGroupSizeConfigDisruptsBigGroup$1(ConsumerBounceTest.scala:320)
>  at 
> kafka.api.ConsumerBounceTest.$anonfun$testRollingBrokerRestartsWithSmallerMaxGroupSizeConfigDisruptsBigGroup$1$adapted(ConsumerBounceTest.scala:319)
>  at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62) 
> at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55) 
> at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49) at 
> kafka.api.ConsumerBounceTest.testRollingBrokerRestartsWithSmallerMaxGroupSizeConfigDisruptsBigGroup(ConsumerBounceTest.scala:319){quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to