Details
-
Bug
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
replicasToDeleteCount = if (!isActive) 0 else controllerContext.topicsToBeDeleted.map { topic => // For each enqueued topic, count the number of replicas that are not yet deleted controllerContext.replicasForTopic(topic).count { replica => controllerContext.replicaState(replica) != ReplicaDeletionSuccessful } }.sum ineligibleReplicasToDeleteCount = if (!isActive) 0 else controllerContext.topicsToBeDeleted.map { topic => // For each enqueued topic, count the number of replicas that are ineligible controllerContext.replicasForTopic(topic).count { replica => controllerContext.replicaState(replica) == ReplicaDeletionIneligible } }.sum
Duplicate replica counts will get ignored in the total sum when the code above converts to a set.
Attachments
Issue Links
- links to