aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-es
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2020-06-09 13:27:34 +0200
committersonartech <sonartech@sonarsource.com>2020-06-26 20:04:57 +0000
commit6189563306e48b3ae939228f5262a6218af67551 (patch)
tree2faece288131e2c89ee494294d74a47dff7dc0f3 /server/sonar-webserver-es
parentb2074b590f50da1503c0b2582b958481f4b057cc (diff)
downloadsonarqube-6189563306e48b3ae939228f5262a6218af67551.tar.gz
sonarqube-6189563306e48b3ae939228f5262a6218af67551.zip
SONAR-13398 fail with 503 api/developers/search_events WS if needIssueSync is set to true
Diffstat (limited to 'server/sonar-webserver-es')
-rw-r--r--server/sonar-webserver-es/src/main/java/org/sonar/server/issue/index/IssueIndexSyncProgressChecker.java4
1 files changed, 4 insertions, 0 deletions
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<String> componentKeys) {
+ checkIfAnyComponentsNeedIssueSync(dbSession, componentKeys, null, null);
+ }
+
public void checkIfComponentNeedIssueSync(DbSession dbSession, String componentKey) {
checkIfAnyComponentsNeedIssueSync(dbSession, Collections.singletonList(componentKey), null, null);
}