Skip to content

Commit

Permalink
Meh
Browse files Browse the repository at this point in the history
  • Loading branch information
albertzaharovits committed Jan 14, 2022
1 parent b792d95 commit 459d6a9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ public static void maybeGenerateEnrollmentTokensAndElasticCredentialsOnNodeStart
// is now a system index), it's not a catastrophic position to be in either, because it only entails
// that new tokens and possibly credentials are generated anew
// TODO maybe we can improve the check that this is indeed the initial node
// a lot of stuff runs when a node just started, and the autoconfiguration is not time-critical
// and nothing else depends on it; be a good sport and wait a couple
threadPool.schedule(new AbstractRunnable() {

@Override
Expand All @@ -104,9 +106,6 @@ public void onFailure(Exception e) {
protected void doRun() throws Exception {
// the HTTP address is guaranteed to be bound only after the node started
nodeStartedSignal.await();
// a lot of stuff runs when a node just started, and the autoconfiguration is not time-critical
// and nothing else depends on it; be a good sport and wait a couple
Thread.sleep(9000);
String fingerprint;
try {
fingerprint = enrollmentTokenGenerator.getHttpsCaFingerprint();
Expand Down

0 comments on commit 459d6a9

Please sign in to comment.