umamaheswararao commented on a change in pull request #2911:
URL: https://github.com/apache/ozone/pull/2911#discussion_r769857791
##########
File path:
hadoop-ozone/client/src/test/java/org/apache/hadoop/ozone/client/TestOzoneECClient.java
##########
@@ -450,14 +456,28 @@ public void testNodeFailuresWhileWriting(int
numFailureToInject,
out.write(inputChunks[i]);
}
- List<DatanodeDetails> failedDNs = new ArrayList<>();
Map<DatanodeDetails, MockDatanodeStorage> storages =
((MockXceiverClientFactory) factoryStub).getStorages();
- DatanodeDetails[] dnDetails =
- storages.keySet().toArray(new DatanodeDetails[storages.size()]);
- for (int i = 0; i < numFailureToInject; i++) {
- failedDNs.add(dnDetails[i]);
- }
+ List<DatanodeDetails> failedDNs =
Review comment:
As we discussed, just hold this JIRA until we commit HDDS-6036.
HDDS-6036 is refactored to provide more flexibility to inject the failures
in specific nodes in block group.
--
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]