You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Haibo Chen (JIRA)" <ji...@apache.org> on 2017/03/07 19:21:38 UTC

[jira] [Created] (YARN-6297) TestAppLogAggregatorImp.verifyFilesUploaded() should check # of filed uploaded with that of files expected

Haibo Chen created YARN-6297:
--------------------------------

             Summary: 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


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