SERVER-137256ClosedFixed

retry connections when verifying repl dbhash

When we make a new connection to check a dbhash in tests, especially tests with background hooks that kill nodes, we should retry on retryable errors. Hash mismatches are not retryable and will still fail the test, but the test should not fail because a single connection failed while a node was being killed.

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.7
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.