Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1150 Handling Error propagation between ZkJobCoordinator & DebounceTimer
  3. SAMZA-1166

Leader should hold a lock to avoid failures on long GC pause/timeouts

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 0.15.0
    • None
    • None

    Description

      The standard leader election algorithm works well for the leader election. However, for the leader to maintain its leadership, it needs a way to identify that it is still the leader. This check should happen before each "leader" like operation. A simple way to do this is to treat leadership as a resource and use a lock. Only operate as leader when lock is held by self.

      Attachments

        Activity

          People

            navina Navina Ramesh
            navina Navina Ramesh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: