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

Reduce lock contention in RaftServerImpl::replyPendingRequest

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • server
    • None

    Description

      https://github.com/apache/incubator-ratis/blob/master/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java#L1341

      Can be easily refactored to acquire the lock only for leader, to reduce the lock contention.

      Observed this in terasort.

      Attachments

        1. image-2020-06-23-11-57-19-791.png
          254 kB
          Rajesh Balamohan

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              rajesh.balamohan Rajesh Balamohan
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 0.5h
                  0.5h