Skip to content

Commit 7e78726

Browse files
committed
Disable BackgroundPipelineCreator
1 parent 6afdba7 commit 7e78726

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline/BackgroundPipelineCreator.java

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -294,21 +294,23 @@ public void notifyEventTriggered(Event event) {
294294

295295
@Override
296296
public boolean shouldRun() {
297-
serviceLock.lock();
298-
try {
299-
// check one-short run
300-
if (oneShotRun) {
301-
oneShotRun = false;
302-
return true;
303-
}
297+
return false;
298+
// serviceLock.lock();
299+
// try {
300+
// // check one-short run
301+
// if (oneShotRun) {
302+
// oneShotRun = false;
303+
// return true;
304+
// }
304305

305306
// If safe mode is off, then this SCMService starts to run with a delay.
306-
return serviceStatus == ServiceStatus.RUNNING && (
307-
createPipelineInSafeMode ||
308-
clock.millis() - lastTimeToBeReadyInMillis >= waitTimeInMillis);
309-
} finally {
310-
serviceLock.unlock();
311-
}
307+
// return serviceStatus == ServiceStatus.RUNNING && (
308+
// createPipelineInSafeMode ||
309+
// clock.millis() - lastTimeToBeReadyInMillis >= waitTimeInMillis);
310+
// return false;
311+
// } finally {
312+
// serviceLock.unlock();
313+
// }
312314
}
313315

314316
private boolean isOneShotRunNeeded() {

0 commit comments

Comments
 (0)