Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-6650

The controller should be able to handle a partially deleted topic

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      A previous controller could have deleted some partitions of a topic from ZK, but not all partitions, and then died.
      In that case, the new controller should be able to handle the partially deleted topic, and finish the deletion.

      In the current code base, if there is no leadership info for a replica's partition, the transition to OfflineReplica state for the replica will fail. Afterwards the transition to ReplicaDeletionStarted will fail as well since the only valid previous state for ReplicaDeletionStarted is OfflineReplica. Furthermore, it means the topic deletion will never finish.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                luwang Lucas Wang
                Reporter:
                luwang Lucas Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: