snvijaya commented on code in PR #3335:
URL: https://github.com/apache/hadoop/pull/3335#discussion_r870775424
##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsRestOperation.java:
##########
@@ -96,6 +97,17 @@ String getSasToken() {
return sasToken;
}
+ public ListResultSchema getListResultSchema()
+ throws AzureBlobFileSystemException {
+ if (result instanceof AbfsHttpConnection) {
+ return ((AbfsHttpConnection) this.result).getListResultSchema();
+ } else {
+ throw new AbfsRestOperationException(-1, null,
Review Comment:
Result here is the response from store backend and List calls will only be
supported HttpConnection. Is more of a safe guard check, though it can never
get into else case.
If it does for any reason, we will want the workload to fail immediately
highlighting the reason explicitly for easy debugging.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]