sv2000 commented on a change in pull request #3011: URL: https://github.com/apache/incubator-gobblin/pull/3011#discussion_r432781803
########## File path: gobblin-service/src/main/java/org/apache/gobblin/service/modules/scheduler/GobblinServiceJobScheduler.java ########## @@ -435,10 +454,17 @@ public void run() { try { GobblinServiceJobScheduler.this.runJob(this.jobConfig, this.jobListener); if (flowCatalog.isPresent() && removeSpec) { + while (!GobblinServiceJobScheduler.this.flowCatalog.get().exists(specUri)) { Review comment: Should this block be replaced with a "wait with a timeout"? Is there a chance this thread may wait forever? If so, we should avoid that. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org