hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-6297) TestAppLogAggregatorImp.verifyFilesUploaded() should check # of filed uploaded with that of files expected
Date Wed, 08 Mar 2017 18:53:38 GMT

    [ https://issues.apache.org/jira/browse/YARN-6297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15901771#comment-15901771
] 

Hudson commented on YARN-6297:
------------------------------

FAILURE: Integrated in Jenkins build Hadoop-trunk-Commit #11373 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/11373/])
YARN-6297. TestAppLogAggregatorImp.verifyFilesUploaded() should check # (rkanter: rev 287ba4ffa66212c02e1b1edc8fca53f6368a9efc)
* (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/TestAppLogAggregatorImpl.java


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


Mime
View raw message