[
https://issues.apache.org/jira/browse/HADOOP-19572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17952843#comment-17952843
]
ASF GitHub Bot commented on HADOOP-19572:
-----------------------------------------
anmolanmol1234 commented on code in PR #7698:
URL: https://github.com/apache/hadoop/pull/7698#discussion_r2097847013
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsBlobClient.java:
##########
@@ -431,6 +435,31 @@ public ListResponseData listPath(final String
relativePath, final boolean recurs
return listResponseData;
}
+
+ @Override
+ public List<FileStatus> postListProcessing(String relativePath,
List<FileStatus> fileStatuses,
+ TracingContext tracingContext, URI uri) throws
AzureBlobFileSystemException {
+ List<FileStatus> rectifiedFileStatuses = new ArrayList<>();
+ if (fileStatuses.isEmpty() && !relativePath.equals(ROOT_PATH)) {
+ // If the list operation returns no paths, we need to check if the path
is a file.
+ // If it is a file, we need to return the file in the list.
+ // If it is a non-existing path, we need to throw a
FileNotFoundException.
+ // Root Always exists as directory. It can be an empty listing.
+ AbfsRestOperation pathStatus = this.getPathStatus(relativePath,
tracingContext, null, false);
+ BlobListResultSchema listResultSchema =
getListResultSchemaFromPathStatus(relativePath, pathStatus);
+ LOG.debug("ListStatus attempted on a file path. Returning file status.");
Review Comment:
Add path as well in the log
> ABFS: [FnsOverBlob] Empty Page Issue on Subsequent ListBlob call
> ----------------------------------------------------------------
>
> Key: HADOOP-19572
> URL: https://issues.apache.org/jira/browse/HADOOP-19572
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/azure
> Affects Versions: 3.5.0, 3.4.1
> Reporter: Anuj Modi
> Priority: Major
> Labels: pull-request-available
>
> We came across a new behavior from server where ListBlob call can return
> empty list even after returning a next marker(continuation token) from
> previous list call.
> This is to handle that case and do not infer listing to be incomplete.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]