[jira] [Updated] (KAFKA-7180) In testHWCheckpointWithFailuresSingleLogSegment, wait until server1 has joined the ISR before shutting down server2
[ https://issues.apache.org/jira/browse/KAFKA-7180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ismael Juma updated KAFKA-7180: --- Fix Version/s: (was: 2.0.0) 2.0.1 > In testHWCheckpointWithFailuresSingleLogSegment, wait until server1 has > joined the ISR before shutting down server2 > --- > > Key: KAFKA-7180 > URL: https://issues.apache.org/jira/browse/KAFKA-7180 > Project: Kafka > Issue Type: Bug >Reporter: Lucas Wang >Assignee: Lucas Wang >Priority: Minor > Fix For: 2.0.1, 2.1.0 > > > In the testHWCheckpointWithFailuresSingleLogSegment method, the test logic is > 1. shutdown server1 and then capture the leadership of a partition in the > variable "leader", which should be server2 > 2. shutdown server2 and wait until the leadership has changed to a broker > other than server2 > through the line > waitUntilLeaderIsElectedOrChanged(zkClient, topic, partitionId, oldLeaderOpt > = Some(leader)) > However when we execute step 2 and shutdown server2, it's possible that > server1 has not caught up with the partition, and has not joined the ISR. > With unclean leader election turned off, the leadership cannot be transferred > to server1, causing the waited condition in step 2 to be never met. > The obvious fix is to wait until server1 has joined the ISR before shutting > down server2. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KAFKA-7180) In testHWCheckpointWithFailuresSingleLogSegment, wait until server1 has joined the ISR before shutting down server2
[ https://issues.apache.org/jira/browse/KAFKA-7180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dong Lin updated KAFKA-7180: Fix Version/s: 2.1.0 > In testHWCheckpointWithFailuresSingleLogSegment, wait until server1 has > joined the ISR before shutting down server2 > --- > > Key: KAFKA-7180 > URL: https://issues.apache.org/jira/browse/KAFKA-7180 > Project: Kafka > Issue Type: Bug >Reporter: Lucas Wang >Assignee: Lucas Wang >Priority: Minor > Fix For: 2.0.0, 2.1.0 > > > In the testHWCheckpointWithFailuresSingleLogSegment method, the test logic is > 1. shutdown server1 and then capture the leadership of a partition in the > variable "leader", which should be server2 > 2. shutdown server2 and wait until the leadership has changed to a broker > other than server2 > through the line > waitUntilLeaderIsElectedOrChanged(zkClient, topic, partitionId, oldLeaderOpt > = Some(leader)) > However when we execute step 2 and shutdown server2, it's possible that > server1 has not caught up with the partition, and has not joined the ISR. > With unclean leader election turned off, the leadership cannot be transferred > to server1, causing the waited condition in step 2 to be never met. > The obvious fix is to wait until server1 has joined the ISR before shutting > down server2. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Updated] (KAFKA-7180) In testHWCheckpointWithFailuresSingleLogSegment, wait until server1 has joined the ISR before shutting down server2
[ https://issues.apache.org/jira/browse/KAFKA-7180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dong Lin updated KAFKA-7180: Fix Version/s: 2.0.0 > In testHWCheckpointWithFailuresSingleLogSegment, wait until server1 has > joined the ISR before shutting down server2 > --- > > Key: KAFKA-7180 > URL: https://issues.apache.org/jira/browse/KAFKA-7180 > Project: Kafka > Issue Type: Bug >Reporter: Lucas Wang >Assignee: Lucas Wang >Priority: Minor > Fix For: 2.0.0, 2.1.0 > > > In the testHWCheckpointWithFailuresSingleLogSegment method, the test logic is > 1. shutdown server1 and then capture the leadership of a partition in the > variable "leader", which should be server2 > 2. shutdown server2 and wait until the leadership has changed to a broker > other than server2 > through the line > waitUntilLeaderIsElectedOrChanged(zkClient, topic, partitionId, oldLeaderOpt > = Some(leader)) > However when we execute step 2 and shutdown server2, it's possible that > server1 has not caught up with the partition, and has not joined the ISR. > With unclean leader election turned off, the leadership cannot be transferred > to server1, causing the waited condition in step 2 to be never met. > The obvious fix is to wait until server1 has joined the ISR before shutting > down server2. -- This message was sent by Atlassian JIRA (v7.6.3#76005)