aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-pushapi
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2022-07-19 10:21:17 +0200
committersonartech <sonartech@sonarsource.com>2022-07-25 20:03:57 +0000
commit9e096f6996ebcdd110f7ef0d55d4d06bc1efebe3 (patch)
tree614947a774ad6f3cada00ccdc31552ad729898b4 /server/sonar-webserver-pushapi
parentabda47d52fb188bb704d71762a544cf3bdbff3b8 (diff)
downloadsonarqube-9e096f6996ebcdd110f7ef0d55d4d06bc1efebe3.tar.gz
sonarqube-9e096f6996ebcdd110f7ef0d55d4d06bc1efebe3.zip
SONAR-16645 - Purge Push Events ITs
Diffstat (limited to 'server/sonar-webserver-pushapi')
-rw-r--r--server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeExecutorServiceImpl.java2
-rw-r--r--server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeScheduler.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeExecutorServiceImpl.java b/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeExecutorServiceImpl.java
index 1e1629f40d6..667425b56d1 100644
--- a/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeExecutorServiceImpl.java
+++ b/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeExecutorServiceImpl.java
@@ -31,7 +31,7 @@ public class PushEventsPurgeExecutorServiceImpl
super(Executors.newSingleThreadScheduledExecutor(r -> {
Thread thread = Executors.defaultThreadFactory().newThread(r);
thread.setDaemon(true);
- thread.setName(String.format("PushEvents-Purge-%d", System.nanoTime()));
+ thread.setName(String.format("PushEvent-Purge-%d", System.nanoTime()));
return thread;
}));
}
diff --git a/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeScheduler.java b/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeScheduler.java
index 1d6f6612ded..e1ccf7e1458 100644
--- a/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeScheduler.java
+++ b/server/sonar-webserver-pushapi/src/main/java/org/sonar/server/pushapi/scheduler/purge/PushEventsPurgeScheduler.java
@@ -37,7 +37,7 @@ import static java.util.concurrent.TimeUnit.SECONDS;
@ServerSide
public class PushEventsPurgeScheduler implements Startable {
private static final Logger LOG = Loggers.get(PushEventsPurgeScheduler.class);
- private static final String LOCK_NAME = "PushEventsPurgeCheck";
+ private static final String LOCK_NAME = "PushPurgeCheck";
private static final String INITIAL_DELAY_IN_SECONDS = "sonar.push.events.purge.initial.delay";
private static final String ENQUEUE_DELAY_IN_SECONDS = "sonar.push.events.purge.enqueue.delay";
private static final int ENQUEUE_LOCK_DELAY_IN_SECONDS = 60;