hanghangliu commented on code in PR #3832:
URL: https://github.com/apache/gobblin/pull/3832#discussion_r1412518727


##########
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/AbstractJobLauncher.java:
##########
@@ -507,9 +513,10 @@ public void apply(JobListener jobListener, JobContext 
jobContext)
         }
 
         // Perform work needed before writing is done
-        Boolean canCleanUp = 
this.canCleanStagingData(this.jobContext.getJobState());
-        workUnitStream = closer.register(new 
DestinationDatasetHandlerService(jobState, canCleanUp, this.eventSubmitter))
-            .executeHandlers(workUnitStream);
+        this.canCleanUpStagingData = 
this.canCleanStagingData(this.jobContext.getJobState());

Review Comment:
   this is actually needed and may easily get overlooked. It's a process that 
make sure the workUnit can handle shards for target directory. Took me a while 
the figure out and debug when testing in the cluster...



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to