Adapt GRPC MockClient to allow restoration of invariant in GRPCReactor::drain()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Networking & Observability
    • Fully Compatible
    • Networking & Obs 2025-01-20, Egress gRPC 2025-01-31
    • 2
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The grpc::MockClientStream class registers tags on the completion queue, and then fulfills the promises directly rather than going through the typical _processCompletionQueueNotification path. This means that after GRPCReactor::drain() is called, the MockClientStream will leave some tasks "incomplete" (still on the _cqTaskStash in the reactor). This is alright in the MockClientStream, but should be an invariant failure for the non-mock uses of the reactor. Modify the MockClientStream so that we can restore this invariant in the GRPCReactor. 

            Assignee:
            Erin McNulty
            Reporter:
            Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: