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

ShardingWriteRouter GBenchmark Doesn't Utilize registerClientObserver

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • Affects Version/s: None
    • Component/s: Sharding
    • Fully Compatible
    • ALL
    • Sharding 2021-10-04
    • 70

      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();
      

            Assignee:
            luis.osta@mongodb.com Luis Osta (Inactive)
            Reporter:
            luis.osta@mongodb.com Luis Osta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: