Skip to content

Commit 2677059

Browse files
committed
Don't decrement mising projects
1 parent e71d8c0 commit 2677059

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityMigrations.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,10 @@ private void incrementAttemptCount(ProjectId project) {
372372
}
373373

374374
private void decrementAttemptCount(ProjectId project) {
375-
taskSubmissionAttemptCounter.computeIfAbsent(project, ignore -> new AtomicInteger(0)).decrementAndGet();
375+
final AtomicInteger counter = taskSubmissionAttemptCounter.get(project);
376+
if (counter != null) {
377+
counter.decrementAndGet();
378+
}
376379
}
377380

378381
}

0 commit comments

Comments
 (0)