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();
- is related to
-
SERVER-58960 Measure the overhead from ShardingWriteRouter on the write codepath
- Closed
-
SERVER-59618 Avoid using LockerNoop outside of unit tests
- Closed
- related to
-
SERVER-60691 benchmark_main does not register ClientObserver for LockerNoop
- Closed