Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
Per YARN-6252
private static void verifyFilesUploaded(Set<String> filesUploaded, Set<String> filesExpected) { final String errMsgPrefix = "The set of files uploaded are not the same " + "as expected"; if(filesUploaded.size() != filesUploaded.size()) { fail(errMsgPrefix + ": actual size: " + filesUploaded.size() + " vs " + "expected size: " + filesExpected.size()); } for(String file: filesExpected) { if(!filesUploaded.contains(file)) { fail(errMsgPrefix + ": expecting " + file); } } }
should check the number of files uploaded against the number of files expected.
Attachments
Attachments
Issue Links
- is related to
-
YARN-6252 Suspicious code fragments: comparing with itself
- Resolved