bhattmanish98 commented on code in PR #7825: URL: https://github.com/apache/hadoop/pull/7825#discussion_r2235073847
########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsBlobClient.java: ########## @@ -1160,8 +1160,12 @@ public AbfsRestOperation setPathProperties(final String path, // This path could be present as an implicit directory in FNS. if (op.getResult().getStatusCode() == HTTP_NOT_FOUND && isNonEmptyDirectory(path, tracingContext)) { // Implicit path found, create a marker blob at this path and set properties. - this.createPathRestOp(path, false, false, false, null, - contextEncryptionAdapter, tracingContext); + try { + this.createPathRestOp(path, false, false, false, null, + contextEncryptionAdapter, tracingContext); + } catch (AbfsRestOperationException exception) { + LOG.debug("Marker creation failed for path {} during setPathProperties", path); Review Comment: It would be better we can log exception status code as well or some details of exception just to know what the exact reason of the failure is ########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsBlobClient.java: ########## @@ -1242,7 +1246,12 @@ public AbfsRestOperation getPathStatus(final String path, && isImplicitCheckRequired && isNonEmptyDirectory(path, tracingContext)) { // Implicit path found. // Create a marker blob at this path. - this.createMarkerAtPath(path, null, contextEncryptionAdapter, tracingContext); + try { + this.createMarkerAtPath(path, null, contextEncryptionAdapter, + tracingContext); + } catch (AbfsRestOperationException exception) { + LOG.debug("Marker creation failed for path {} during getPathStatus ", path); Review Comment: Same as above. ########## hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsBlobClient.java: ########## @@ -1160,8 +1160,12 @@ public AbfsRestOperation setPathProperties(final String path, // This path could be present as an implicit directory in FNS. if (op.getResult().getStatusCode() == HTTP_NOT_FOUND && isNonEmptyDirectory(path, tracingContext)) { // Implicit path found, create a marker blob at this path and set properties. - this.createPathRestOp(path, false, false, false, null, - contextEncryptionAdapter, tracingContext); + try { + this.createPathRestOp(path, false, false, false, null, Review Comment: Test case to check this change is not added, should we add that? -- 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: common-issues-unsubscr...@hadoop.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org