File tree Expand file tree Collapse file tree
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/pipeline Expand file tree Collapse file tree Original file line number Diff line number Diff 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 () {
You can’t perform that action at this time.
0 commit comments