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

ShardingWriteRouter GBenchmark Doesn't Utilize registerClientObserver

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.1.0-rc0
    • Component/s: Sharding
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2021-10-04
    • Linked BF Score:
      70

      Description

      Recently, an invariant was added to require a locker instance. It was done for SERVER-59618.

      We need to add a line before creating the operation context in the benchmarks to register the client observer. Such as:

          auto serviceContext = ServiceContext::make();
          const auto client = serviceContext->makeClient("test");
          serviceContext->registerClientObserver(std::make_unique<LockerMongosClientObserver>());
       
          const auto opCtx = client->makeOperationContext();
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luis.osta Luis Osta
              Reporter:
              luis.osta Luis Osta
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: