Github user ejwhite922 commented on a diff in the pull request:

    https://github.com/apache/incubator-rya/pull/173#discussion_r123565355
  
    --- Diff: 
extras/rya.merger/src/test/java/org/apache/rya/accumulo/mr/merge/RulesetCopyIT.java
 ---
    @@ -144,32 +146,33 @@ private static RyaType literal(final String lit, 
final URI type) {
     
         @BeforeClass
         public static void setUpPerClass() throws Exception {
    +        DemoUtilities.setupLogging(LoggingDetail.LIGHT);
             accumuloDualInstanceDriver = new 
AccumuloDualInstanceDriver(IS_MOCK, true, true, false, false);
             accumuloDualInstanceDriver.setUpInstances();
         }
     
         @Before
         public void setUpPerTest() throws Exception {
    -        parentConfig = accumuloDualInstanceDriver.getParentConfig();
    -        childConfig = accumuloDualInstanceDriver.getChildConfig();
    -        accumuloDualInstanceDriver.setUpTables();
             accumuloDualInstanceDriver.setUpConfigs();
    +        accumuloDualInstanceDriver.setUpTables();
             accumuloDualInstanceDriver.setUpDaos();
    +        parentConfig = accumuloDualInstanceDriver.getParentConfig();
    +        childConfig = accumuloDualInstanceDriver.getChildConfig();
             parentDao = accumuloDualInstanceDriver.getParentDao();
         }
     
         @After
         public void tearDownPerTest() throws Exception {
             log.info("tearDownPerTest(): tearing down now.");
    -        accumuloDualInstanceDriver.tearDownDaos();
             accumuloDualInstanceDriver.tearDownTables();
    +        accumuloDualInstanceDriver.tearDownDaos();
    +        if (rulesetTool != null) {
    +            rulesetTool.shutdown();
    +        }
         }
     
         @AfterClass
         public static void tearDownPerClass() throws Exception {
    -        if (rulesetTool != null) {
    -            rulesetTool.shutdown();
    -        }
             accumuloDualInstanceDriver.tearDown();
    --- End diff --
    
    This way caused the tests to run faster and were a bit more reliable. 
Trying to spin up a new MAC for each test and tear it down nearly doubled the 
time for running the tests.  It looked like more java processes were opened by 
spinning up MACs for each test.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to