Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6297

TestAppLogAggregatorImp.verifyFilesUploaded() should check # of filed uploaded with that of files expected

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      Per YARN-6252

        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);
            }
          }
        }
      

      should check the number of files uploaded against the number of files expected.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                haibochen Haibo Chen
                Reporter:
                haibochen Haibo Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: