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

Remove uncessary error log in JVMPauseMonitor When GC is serious

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.1, 3.2.0
    • util
    • None

    Description

      JVMPauseMonitor may be printing unexpected Error logs when GC is heavy and the cluster keeps triggering re-election.

      After investigating the relevant code, it is found that the Preconditions here are unreasonable. When we update, we will first update the serverstate's term and then shutdown LeaderState. If any other thread calls leaderState's getCurrentTerm in the meantime, this will cause an error, so it's not necessary at this point


      Attachments

        1. image-2024-08-12-14-17-13-030.png
          418 kB
          Xinyu Tan
        2. image-2024-08-12-14-14-45-615.png
          325 kB
          Xinyu Tan
        3. image-2024-08-12-14-13-05-825.png
          1.72 MB
          Xinyu Tan

        Activity

          People

            tanxinyu Xinyu Tan
            tanxinyu Xinyu Tan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h