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

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10259.0.9
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
repl-amber