10gen / mongo-orchestration

Apache License 2.0
7 stars 11 forks source link

Wait for user to be replicated to secondaries before proceeding. #99

Closed llvtt closed 10 years ago

llvtt commented 10 years ago

There's a race condition between a user being replicated to all secondaries and attempting to authenticate as that user to run commands. I think that might be what's causing this failure, for example:

https://jenkins.10gen.com/job/mongo-java-driver-test-3.0.x/1461/jdk=HotSpot6,label=linux64,mongodb_configuration=replica_set,mongodb_option=auth,mongodb_server=27-nightly,mongodb_ssl=nossl/console

This change ensures the user has been replicated before Mongo Orchestration does anything else.