You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Peter Bacsko (JIRA)" <ji...@apache.org> on 2018/05/29 15:28:00 UTC

[jira] [Created] (OOZIE-3268) TestCoordELExtensions should restore the property "oozie.test.config.file"

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)