Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9389

test-patch marks -1 due to a context @Test by mistake

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • None
    • None

    Description

      HADOOP-9112 enables the function of marking -1 when the newly added tests don't have timeout. However, test-patch will mark -1 due to a context @Test by mistake. Bellow is the problematic part of the YARN-378_3.patch that I've created.

      +    }
      +  }
      +
         @Test
         public void testRMAppSubmitWithQueueAndName() throws Exception {
           long now = System.currentTimeMillis();
      

      There's a @Test without timeout (most existing tests don't have timeout) in the context. In test-patch, $AWK '{ printf "%s ", $0 }' collapses these lines into one line, i.e.,

      +    } +  } +    @Test    public void testRMAppSubmitWithQueueAndName() throws Exception {      long now = System.currentTimeMillis();
      

      Then, @Test in the context follows a "+", and is regarded as a newly added test by mistake. Consequently, the following regex will accept the context @Test.

      Attachments

        1. HADOOP-9389_1.patch
          1.0 kB
          Zhijie Shen

        Issue Links

          Activity

            People

              zjshen Zhijie Shen
              zjshen Zhijie Shen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: