Skip to content

Commit

Permalink
handle 'Could not locate the leader master' error
Browse files Browse the repository at this point in the history
yb-admin list_all_masters command may run into error: Could not locate the leader master: no leader found.
  • Loading branch information
iswarezwp authored Aug 7, 2020
1 parent b969354 commit 96292c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yugabyte/src/yugabyte/auto.clj
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@

(catch RuntimeException e
(condp re-find (.getMessage e)
#"Could not locate the leader master" (retry (dec tries))
#"Timed out" (retry (dec tries))
#"Leader not yet ready to serve requests" (retry (dec tries))
(throw e)))))
Expand Down

0 comments on commit 96292c7

Please sign in to comment.