Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-98524

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 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

      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@mongodb.com Erin McNulty
            Reporter:
            erin.mcnulty@mongodb.com Erin McNulty
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: