From 6189563306e48b3ae939228f5262a6218af67551 Mon Sep 17 00:00:00 2001 From: Jacek Date: Tue, 9 Jun 2020 13:27:34 +0200 Subject: [PATCH] SONAR-13398 fail with 503 api/developers/search_events WS if needIssueSync is set to true --- .../server/issue/index/IssueIndexSyncProgressChecker.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java index 5c6aefe3a90..0b0fbab5ed8 100644 --- a/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java +++ b/server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java @@ -50,6 +50,10 @@ public class IssueIndexSyncProgressChecker { } } + public void checkIfAnyComponentsNeedIssueSync(DbSession dbSession, List componentKeys) { + checkIfAnyComponentsNeedIssueSync(dbSession, componentKeys, null, null); + } + public void checkIfComponentNeedIssueSync(DbSession dbSession, String componentKey) { checkIfAnyComponentsNeedIssueSync(dbSession, Collections.singletonList(componentKey), null, null); } -- 2.39.5