Skip to content

Commit

Permalink
increase the wait timeout to fetch the master key
Browse files Browse the repository at this point in the history
Signed-off-by: Jing Zhang <[email protected]>
  • Loading branch information
jngz-es committed Oct 23, 2024
1 parent c195fd6 commit 1e7896c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ private void initMasterKey() {
}));

try {
latch.await(1, SECONDS);
boolean completed = latch.await(3, SECONDS);
if (!completed) {
throw new MLException("Fetching master key timed out.");
}
} catch (InterruptedException e) {
throw new IllegalStateException(e);
}
Expand Down

0 comments on commit 1e7896c

Please sign in to comment.