hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Haibo Chen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-6297) TestAppLogAggregatorImp.verifyFilesUploaded() should check # of filed uploaded with that of files expected
Date Tue, 07 Mar 2017 19:21:38 GMT

     [ https://issues.apache.org/jira/browse/YARN-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Haibo Chen updated YARN-6297:
-----------------------------
    Labels: test  (was: )

> 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
>
> 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: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message