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

OrderAsync does not call handReply

    XMLWordPrintableJSON

Details

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

    Description

      In code below, the future f is always done so client.handleReply(..) is never called.

      //OrderedAsync.sendRequestWithRetry(..)
          sendRequest(pending).thenAccept(reply -> {
            if (f.isDone()) {
              return;
            }
            if (reply == null) {
              scheduleWithTimeout(pending, request, retryPolicy, null);
            } else {
              client.handleReply(request, reply);
              f.complete(reply);
            }
          })...
      

      Attachments

        Issue Links

          Activity

            People

              szetszwo Tsz-wo Sze
              szetszwo Tsz-wo Sze
              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 - 40m
                  40m