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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4
    • None
    • 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

        1. YARN-6297.01.patch
          3 kB
          Haibo Chen

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: