Browse Source

MINOR: Fix stale comment in partition reassignment javadoc (#7438)

Reviewers: Colin P. McCabe <cmccabe@apache.org>, Viktor Somogyi <viktorsomogyi@gmail.com>
pull/7343/head
Stanislav Kozlovski 5 years ago committed by Colin Patrick McCabe
parent
commit
c620b73883
  1. 4
      core/src/main/scala/kafka/controller/KafkaController.scala

4
core/src/main/scala/kafka/controller/KafkaController.scala

@ -562,8 +562,8 @@ class KafkaController(val config: KafkaConfig,
* . OVRS denotes the overlapping replica set - replicas which are part of the AR of the ongoing reassignment and will be part of the overriding reassignment * . OVRS denotes the overlapping replica set - replicas which are part of the AR of the ongoing reassignment and will be part of the overriding reassignment
* (it is essentially (RS - ORS) - URS) * (it is essentially (RS - ORS) - URS)
* *
* 1 Set RS = ORS + OVRS, AR = OVRS, RS = [] in memory * 1 Set RS = ORS + OVRS, AR = OVRS, RR = [] in memory
* 2 Send LeaderAndIsr request with RS = ORS + OVRS, AR = [], RS = [] to all brokers in ORS + OVRS * 2 Send LeaderAndIsr request with RS = ORS + OVRS, AR = OVRS, RR = [] to all brokers in ORS + OVRS
* (because the ongoing reassignment is in phase A, we know we wouldn't have a leader in URS * (because the ongoing reassignment is in phase A, we know we wouldn't have a leader in URS
* unless a preferred leader election was triggered while the reassignment was happening) * unless a preferred leader election was triggered while the reassignment was happening)
* 3 Replicas in URS -> Offline (force those replicas out of ISR) * 3 Replicas in URS -> Offline (force those replicas out of ISR)

Loading…
Cancel
Save