If we add_srv, what we can check is that a command was accepted. However, the only way to check whether it was applied is to query replica's config. In case of server not being added (e.g. non-existent host) we will never find this server in a config.
This PR proposes a way to handle such corner cases without relying on some arbitrary timeouts
Note we don't need a ServerLeaveFailed callback as a server that fails to be removed gracefully is still removed.
If we
add_srv
, what we can check is that a command was accepted. However, the only way to check whether it was applied is to query replica's config. In case of server not being added (e.g. non-existent host) we will never find this server in a config. This PR proposes a way to handle such corner cases without relying on some arbitrary timeoutsNote we don't need a ServerLeaveFailed callback as a server that fails to be removed gracefully is still removed.