SERVER-136903ClosedFixed
Investigate lifetime issues with the replication worker pool owned by ReplicationCoordinatorExternalStateImpl
h3. Background Both issues came up in review comments (Copilot) on a PR that made {{ReplicationCoordinatorExternalStateImpl::_workerPool}} a {{const std::unique_ptr[ThreadPool]}} constructed in the constructor via {{{}makeReplWorkerPool(){}}}. They have not been independently verified, so this ticket is to confirm whether they are real and decide on fixes. h3. Issue 1: Pool can be resized after replication shutdown * {{getDbWorkThreadPool()}} now stays non-null after {{_stopDataReplication