codope commented on code in PR #12288:
URL: https://github.com/apache/hudi/pull/12288#discussion_r1855250332


##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/versioning/v2/ActiveTimelineV2.java:
##########
@@ -258,8 +260,17 @@ protected String getInstantFileName(HoodieInstant instant) 
{
 
   @Override
   public Option<byte[]> getInstantDetails(HoodieInstant instant) {
-    StoragePath detailPath = 
getInstantFileNamePath(getInstantFileName(instant));
-    return readDataFromPath(detailPath);
+    try {
+      StoragePath detailPath = 
getInstantFileNamePath(getInstantFileName(instant));
+      return readDataFromPath(detailPath);
+    } catch (NullPointerException npe) {
+      LOG.error("NPE. instant=" + instant);

Review Comment:
   removed, not needed.. only for debugging purpose



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