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

Reply via email to