ShardingWriteRouter GBenchmark Doesn't Utilize registerClientObserver

XMLWordPrintableJSON

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

      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 (Inactive)
              Reporter:
              Luis Osta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: