Skip to content

Commit 971fe7c

Browse files
Raise exception of Oplog/Tailer threads exit before starting
1 parent d780ad5 commit 971fe7c

File tree

1 file changed

+2
-0
lines changed
  • mongodb_consistent_backup/Oplog/Tailer

1 file changed

+2
-0
lines changed

mongodb_consistent_backup/Oplog/Tailer/Tailer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ def run(self):
6464
}
6565
self.shards[shard]['thread'].start()
6666
while not oplog_state.get('running'):
67+
if self.shards[shard]['thread'].exitcode:
68+
raise OperationError("Oplog tailer for %s failed with exit code %i!" % (mongo_uri, self.shards[shard]['thread'].exitcode))
6769
sleep(0.5)
6870

6971
def stop(self, kill=False, sleep_secs=0.5):

0 commit comments

Comments
 (0)