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

Fix retry cache warning condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • server
    • None

    Description

      Made a mistake in previous PR #904. The conditions here are a bit of tricky.

      The cache entry is expected to be not completed normally when replyPendingRequest, since we'll complete this cache entry at the very end of replyPendingRequest.

      The explanation why this assertion fails in previous PR is incorrect. The real path leading to the error is:
      If the request r arrived, committed, but became timeout due to blocking apply (may be stuck in a synchronous snapshotting), a client may choose to retry r. However, if the retry gap exceeds retryCache expiration duration (in our case, yes), the very same request r would be committed, again. After the snapshotting finished, these two identical requests being applied would cause the assertion to fail.

      Maybe we should recommend users to set a retry cache expiration duration longer than the client retry-waiting duration?

       

      Attachments

        Activity

          People

            William Song Song Ziyang
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: