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

Remove uncessary error log in JVMPauseMonitor When GC is serious

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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

                Slack

                  Issue deployment