You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2022/03/21 02:59:21 UTC
[GitHub] [kafka] showuon commented on a change in pull request #11376: KAFKA-13342: LeaderAndIsrRequest should not be sent for topic queued for deletion
showuon commented on a change in pull request #11376:
URL: https://github.com/apache/kafka/pull/11376#discussion_r830724959
##########
File path: core/src/test/scala/unit/kafka/controller/ReplicaStateMachineTest.scala
##########
@@ -394,6 +394,22 @@ class ReplicaStateMachineTest {
}
@Test
+ def testInvalidOnlineReplicaTransitionWithQueuedDeletion(): Unit = {
+ controllerContext.putReplicaState(replica, ReplicaDeletionIneligible)
+ controllerContext.updatePartitionFullReplicaAssignment(partition, ReplicaAssignment(Seq(brokerId)))
+ val leaderIsrAndControllerEpoch = LeaderIsrAndControllerEpoch(LeaderAndIsr(brokerId, List(brokerId)), controllerEpoch)
+ controllerContext.putPartitionLeadershipInfo(partition, leaderIsrAndControllerEpoch)
+ EasyMock.expect(mockControllerBrokerRequestBatch.newBatch())
Review comment:
We've replaced EasyMock with Mockito in the latest trunk. Could you rebase to the latest trunk and update the test accordingly? 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