anmolanmol1234 commented on code in PR #7272:
URL: https://github.com/apache/hadoop/pull/7272#discussion_r1908443326
##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsCustomEncryption.java:
##########
@@ -310,12 +322,26 @@ private AbfsRestOperation
callOperation(AzureBlobFileSystem fs,
}
}
case WRITE:
- return client.flush(path, 3, false, false, null,
- null, encryptionAdapter, getTestTracingContext(fs, false));
+ if (ingressClient instanceof AbfsDfsClient) {
+ return ingressClient.flush(path, 3, false, false, null,
+ null, encryptionAdapter, getTestTracingContext(fs, false));
+ } else {
+ byte[] buffer =
generateBlockListXml().getBytes(StandardCharsets.UTF_8);
+ return ingressClient.flush(buffer, path, false, null,
+ null, null, encryptionAdapter, getTestTracingContext(fs, false));
+ }
case APPEND:
- return client.append(path, "val".getBytes(),
- new AppendRequestParameters(3, 0, 3, APPEND_MODE, false, null,
true),
- null, encryptionAdapter, getTestTracingContext(fs, false));
+ if (ingressClient instanceof AbfsDfsClient) {
+ return ingressClient.append(path, "val".getBytes(),
+ new AppendRequestParameters(3, 0, 3, APPEND_MODE, false, null,
+ true),
+ null, encryptionAdapter, getTestTracingContext(fs, false));
+ } else {
+ return ingressClient.append(path, "val".getBytes(),
+ new AppendRequestParameters(3, 0, 3, APPEND_MODE, false, null,
+ true, new
BlobAppendRequestParameters("MF8tNDE1MjkzOTE4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
null)),
Review Comment:
taken
--
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]