Uploaded image for project: 'Ratis'
  1. Ratis
  2. RATIS-179

Improve the log message in leader election and refactor the tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.2.0
    • None
    • None

    Description

      Log message changes:

      • when a server changes role, log also the term and the reason.
      • when a server changes the recognized Leader, log also the term and the reason.

      Test refactoring:

      • Move the leader election tests from RaftBasicTests to a new class since RaftBasicTests is getting large.

      Attachments

        1. r179_20171223.patch
          26 kB
          Tsz-wo Sze
        2. r179_20171222.patch
          24 kB
          Tsz-wo Sze

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: