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: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability

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

              Created:
              Updated: