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

Incorrect clientWriteRequest timer usage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.1
    • 2.5.2
    • metrics
    • None

    Description

      clientWriteRequest timer measures the time from receiving the client request until the leader responds back.

      But this timer is only initialized when the leader responds, so the timer is always close to zero.
      https://github.com/apache/ratis/blob/branch-2/ratis-server/src/main/java/org/apache/ratis/server/impl/RaftServerImpl.java#L840

      The bug is accidentally fixed in 3.0.0 by RATIS-1693. But for users of 2.x this may still be worth fixing.

      Attachments

        Issue Links

          Activity

            People

              weichiu Wei-Chiu Chuang
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 20m
                  20m