cnauroth commented on code in PR #5251:
URL: https://github.com/apache/hadoop/pull/5251#discussion_r1055754828


##########
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/CopyCommitter.java:
##########
@@ -152,6 +152,15 @@ public void abortJob(JobContext jobContext,
   }
 
   private void cleanupTempFiles(JobContext context) {
+    final boolean directWrite = context.getConfiguration().getBoolean(

Review Comment:
   There is an existing call to `Configuration conf = 
context.getConfiguration();` below. Can you please lift that up and then reuse 
it for the `conf.getBoolean(...)` calls that you need to add?



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to