Skip to content

Commit

Permalink
[backport 2.14] increase the wait timeout to fetch the master key (#3151
Browse files Browse the repository at this point in the history
) (#3178) (#3213)

* increase the wait timeout to fetch the master key (#3151) (#3178)

* increase the wait timeout to fetch the master key

Signed-off-by: Jing Zhang <[email protected]>

* fix UTs

Signed-off-by: Jing Zhang <[email protected]>

---------

Signed-off-by: Jing Zhang <[email protected]>

* spotless

Signed-off-by: Jing Zhang <[email protected]>

* fix UT

Signed-off-by: Jing Zhang <[email protected]>

---------

Signed-off-by: Jing Zhang <[email protected]>
Co-authored-by: opensearch-trigger-bot[bot] <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com>
  • Loading branch information
jngz-es and opensearch-trigger-bot[bot] authored Nov 25, 2024
1 parent 00aea6a commit 013d105
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ private void initMasterKey() {
}

try {
latch.await(5, 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 013d105

Please sign in to comment.