beyond1920 commented on code in PR #10070:
URL: https://github.com/apache/hudi/pull/10070#discussion_r1393568097


##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunCompactionProcedure.scala:
##########
@@ -147,7 +147,13 @@ class RunCompactionProcedure extends BaseProcedure with 
ProcedureBuilder with Sp
   private def handleResponse(metadata: HoodieCommitMetadata): Unit = {
     // Handle error
     val writeStats = metadata.getPartitionToWriteStats.entrySet().flatMap(e => 
e.getValue).toList
-    val errorsCount = writeStats.map(state => state.getTotalWriteErrors).sum
+    val errorsCount = writeStats.map { state =>
+      val writeErrors = state.getTotalWriteErrors
+      if (writeErrors > 0) {
+        logError(s"Error occurred while writing the file: ${state.getPath}.")
+      }

Review Comment:
   Done



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