[
https://issues.apache.org/jira/browse/YARN-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haibo Chen updated YARN-6297:
-----------------------------
Attachment: YARN-6297.01.patch
Upload a patch to address the issue and fix the newly uncovered bugs in test
code.
> TestAppLogAggregatorImp.verifyFilesUploaded() should check # of filed
> uploaded with that of files expected
> ----------------------------------------------------------------------------------------------------------
>
> Key: YARN-6297
> URL: https://issues.apache.org/jira/browse/YARN-6297
> Project: Hadoop YARN
> Issue Type: Bug
> Reporter: Haibo Chen
> Assignee: Haibo Chen
> Labels: test
> Attachments: YARN-6297.01.patch
>
>
> Per YARN-6252
> {code:java}
> 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);
> }
> }
> }
> {code}
> should check the number of files uploaded against the number of files
> expected.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]