Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In case of a partition failure, the replica fetcher thread would stop tracking the failed partition. The thread would continue to monitor rest of the partitions. The failedPartition set would keep track of failed partitions. Once the fetcher stops tracking it, the partition would be removed from the set for failed partitions. Hereafter, the controller may choose the partition as a leader or follower . If the partition has recovered and healthy enough to lead it would remain leader otherwise usual behavior would follow as for a leader going downand rest of the behavior remains same.

Since the two replica fetchers (ReplicaFetcherThread and ReplicaAlterLogDirsThread) are quite similar in behavior and are extended from the same class, probably should not make one deviate much from the other.

...