[GitHub] [hudi] danny0405 commented on a diff in pull request #9577: [HUDI-6805] Print detailed error message in clustering
danny0405 commented on code in PR #9577: URL: https://github.com/apache/hudi/pull/9577#discussion_r1312680578 ## hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowCreateHandle.java: ## @@ -241,6 +242,9 @@ public WriteStatus close() throws IOException { stat.setTotalWriteBytes(fileSizeInBytes); stat.setFileSizeInBytes(fileSizeInBytes); stat.setTotalWriteErrors(writeStatus.getTotalErrorRecords()); +for (Pair pair : writeStatus.getFailedRecords()) { + LOG.error("Failed to write {}", pair.getLeft(), pair.getRight()); +} Review Comment: So do you think we just print out all the errors or just the first one? -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
[GitHub] [hudi] danny0405 commented on a diff in pull request #9577: [HUDI-6805] Print detailed error message in clustering
danny0405 commented on code in PR #9577: URL: https://github.com/apache/hudi/pull/9577#discussion_r1312443728 ## hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/io/storage/row/HoodieRowCreateHandle.java: ## @@ -241,6 +242,9 @@ public WriteStatus close() throws IOException { stat.setTotalWriteBytes(fileSizeInBytes); stat.setFileSizeInBytes(fileSizeInBytes); stat.setTotalWriteErrors(writeStatus.getTotalErrorRecords()); +for (Pair pair : writeStatus.getFailedRecords()) { + LOG.error("Failed to write {}", pair.getLeft(), pair.getRight()); +} Review Comment: Is there any possibility we have too many records to print so the logs are overwhelmed. -- 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: commits-unsubscr...@hudi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org