Peter Bacsko created OOZIE-3268:
-----------------------------------

             Summary: TestCoordELExtensions should restore the property 
"oozie.test.config.file"
                 Key: OOZIE-3268
                 URL: https://issues.apache.org/jira/browse/OOZIE-3268
             Project: Oozie
          Issue Type: Sub-task
            Reporter: Peter Bacsko
            Assignee: Peter Bacsko


The following {{setUp()}} method can cause serious test problems depending the 
order of test execution:

{noformat}
@Override
    protected void setUp() throws Exception {
        setSystemProperty("oozie.test.config.file", new File(OOZIE_SRC_DIR,
                
"core/src/test/resources/oozie-site-coordel.xml").getAbsolutePath());
        super.setUp();
        services = new Services();
        setClassesToBeExcluded(services.getConf(), excludedServices);
        services.init();
    }
{noformat}

The problem is, this causes Oozie to switch to Derby from HSQLDB. However, 
before every testcase, the previous instance of Derby is not closed, leading to 
excessive number of open files. After a certain point, all tests fail with "Too 
many files open" exception.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to