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

Controller should notify the RaftClient when it resigns

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: controller, kraft
    • Labels:

      Description

            private Throwable handleEventException(String name,
                                                   Optional<Long> startProcessingTimeNs,
                                                   Throwable exception) {
                ...
                renounce();
                return new UnknownServerException(exception);
            }
       

      When the active controller encounters an event exception it attempts to renounce leadership. Unfortunately, this doesn't tell the RaftClient that it should attempt to give up leadership. This will result in inconsistent state with the RaftClient as leader but with the controller as inactive.

      We should change this implementation so that the active controller asks the RaftClient to resign. The active controller waits until handleLeaderChange before calling renounce()

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rdielhenn Ryan Dielhenn
                Reporter:
                jagsancio Jose Armando Garcia Sancio
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: