[
https://issues.apache.org/jira/browse/ACCUMULO-2781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14488084#comment-14488084
]
Christopher Tubbs commented on ACCUMULO-2781:
---------------------------------------------
So, I just tried to run tests with {{-DreuseForks=true}} and I got a lot of
failures from our mapreduce tests starting like {{IO Can't get Master Kerberos
principal for use ...}}
So, right now, reuseForks will not work for unit tests. This needs further
investigation to figure out why.
> Unit tests should reuse forks by default
> ----------------------------------------
>
> Key: ACCUMULO-2781
> URL: https://issues.apache.org/jira/browse/ACCUMULO-2781
> Project: Accumulo
> Issue Type: Improvement
> Components: build
> Affects Versions: 1.6.0
> Reporter: Christopher Tubbs
> Fix For: 1.8.0
>
>
> The default value for maven-surefire-plugin's reuseForks is true. This is set
> to false in our pom.xml in order to keep ITs independent. This inadvertently
> affects unit tests also, and causes unit tests to create a new JVM for each
> test class.
> These should be separated, and the default for unit tests
> (maven-surefire-plugin's execution) should be {{reuseForks=true}}, and the
> default for ITs (maven-failsafe-plugin's execution) should be
> {{reuseForks=false}} (as it is now).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)