[GitHub] [hudi] danny0405 commented on a diff in pull request #9049: [HUDI-6435] Add some logs to the updateHeartbeat method
danny0405 commented on code in PR #9049: URL: https://github.com/apache/hudi/pull/9049#discussion_r1243054136 ## hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/ClientIds.java: ## @@ -167,6 +167,7 @@ private void updateHeartbeat(Path heartbeatFilePath) throws HoodieHeartbeatExcep this.fs.create(heartbeatFilePath, true); outputStream.close(); } catch (IOException io) { + LOG.error("Unable to generate heartbeat,heartbeatFilePath:{}", heartbeatFilePath, io); throw new HoodieHeartbeatException("Unable to generate heartbeat ", io); } Review Comment: We can remove the log: `LOG.error("Unable to generate heartbeat,heartbeatFilePath:{}", heartbeatFilePath, io);` -- 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 #9049: [HUDI-6435] Add some logs to the updateHeartbeat method
danny0405 commented on code in PR #9049: URL: https://github.com/apache/hudi/pull/9049#discussion_r1243053950 ## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/heartbeat/HoodieHeartbeatClient.java: ## @@ -262,6 +262,7 @@ private void updateHeartbeat(String instantTime) throws HoodieHeartbeatException heartbeat.setLastHeartbeatTime(newHeartbeatTime); heartbeat.setNumHeartbeats(heartbeat.getNumHeartbeats() + 1); } catch (IOException io) { + LOG.error("Unable to generate heartbeat,instant:{}", instantTime, io); throw new HoodieHeartbeatException("Unable to generate heartbeat ", io); } Review Comment: We can remove the log: `LOG.error("Unable to generate heartbeat,instant:{}", instantTime, io);` -- 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 #9049: [HUDI-6435] Add some logs to the updateHeartbeat method
danny0405 commented on code in PR #9049: URL: https://github.com/apache/hudi/pull/9049#discussion_r1241471454 ## hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/util/ClientIds.java: ## @@ -167,6 +167,7 @@ private void updateHeartbeat(Path heartbeatFilePath) throws HoodieHeartbeatExcep this.fs.create(heartbeatFilePath, true); outputStream.close(); } catch (IOException io) { + LOG.error("Unable to generate heartbeat,heartbeatFilePath:{}", heartbeatFilePath, io); throw new HoodieHeartbeatException("Unable to generate heartbeat ", io); } Review Comment: Ditto: ```java throw new HoodieHeartbeatException("Unable to generate heartbeat for file path " + heartbeatFilePath, io); ``` -- 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 #9049: [HUDI-6435] Add some logs to the updateHeartbeat method
danny0405 commented on code in PR #9049: URL: https://github.com/apache/hudi/pull/9049#discussion_r1241471218 ## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/heartbeat/HoodieHeartbeatClient.java: ## @@ -262,6 +262,7 @@ private void updateHeartbeat(String instantTime) throws HoodieHeartbeatException heartbeat.setLastHeartbeatTime(newHeartbeatTime); heartbeat.setNumHeartbeats(heartbeat.getNumHeartbeats() + 1); } catch (IOException io) { + LOG.error("Unable to generate heartbeat,instant:{}", instantTime, io); throw new HoodieHeartbeatException("Unable to generate heartbeat ", io); } Review Comment: Strength the error msg should be fine: ```java throw new HoodieHeartbeatException("Unable to generate heartbeat for instant " + instantTime, io); ``` -- 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