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

ShardingWriteRouter GBenchmark Doesn't Utilize registerClientObserver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.1.0-rc0
    • Sharding
    • Fully Compatible
    • ALL
    • Sharding 2021-10-04
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: