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

TestContainerManagerWithLCE requires override for each new test added to ContainerManagerTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-alpha4, 2.8.2
    • test
    • None

    Description

      Every test in TestContainerManagerWithLCE looks like this:

        @Override
        public void testSomething() throws Exception {
          // Don't run the test if the binary is not available.
          if (!shouldRunTest()) {
            LOG.info("LCE binary path is not passed. Not running the test");
            return;
          }
          LOG.info("Running something");
          super.testSomething();
        }
      

      If a new test is added to ContainerManagerTest then by default ContainerManagerTestWithLCE will fail when the LCE has not been configured. This is an unnecessary maintenance burden.

      Attachments

        1. YARN-6450.001.patch
          12 kB
          Jason Darrell Lowe

        Activity

          People

            jlowe Jason Darrell Lowe
            jlowe Jason Darrell Lowe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: