You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ck...@apache.org on 2018/08/06 22:02:42 UTC
logging-log4j2 git commit: [LOG4J2-2348] workaround flaky "Operation
not permitted" failures in mongo tests
Repository: logging-log4j2
Updated Branches:
refs/heads/master e2b5ef243 -> 78ab45176
[LOG4J2-2348] workaround flaky "Operation not permitted" failures in mongo tests
mongo tests intermittenly fail with an "Operation not permitted"
IOException when trying to execute the mongod extracted by
de.flapdoodle.embed.process; this seems to be related to surefire
running tests in parallel. Work around that here by forcing serial
execution of the mongo tests.
This closes #201
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/78ab4517
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/78ab4517
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/78ab4517
Branch: refs/heads/master
Commit: 78ab45176d37225dd8072a42cc78625b7f9b460e
Parents: e2b5ef2
Author: Brian Laub <bj...@gmail.com>
Authored: Mon Aug 6 16:15:19 2018 -0400
Committer: Carter Kozak <ck...@apache.org>
Committed: Mon Aug 6 18:01:33 2018 -0400
----------------------------------------------------------------------
log4j-mongodb2/pom.xml | 8 ++++++++
log4j-mongodb3/pom.xml | 8 ++++++++
2 files changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/78ab4517/log4j-mongodb2/pom.xml
----------------------------------------------------------------------
diff --git a/log4j-mongodb2/pom.xml b/log4j-mongodb2/pom.xml
index daeb6fd..0b33b74 100644
--- a/log4j-mongodb2/pom.xml
+++ b/log4j-mongodb2/pom.xml
@@ -89,6 +89,14 @@
</instructions>
</configuration>
</plugin>
+ <!-- workaround flaky "Operation not permitted" failures when running tests in parallel -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkCount>1</forkCount>
+ <reuseForks>false</reuseForks>
+ </configuration>
+ </plugin>
</plugins>
</build>
<reporting>
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/78ab4517/log4j-mongodb3/pom.xml
----------------------------------------------------------------------
diff --git a/log4j-mongodb3/pom.xml b/log4j-mongodb3/pom.xml
index 4142024..0b6ef5c 100644
--- a/log4j-mongodb3/pom.xml
+++ b/log4j-mongodb3/pom.xml
@@ -93,6 +93,14 @@
</instructions>
</configuration>
</plugin>
+ <!-- workaround flaky "Operation not permitted" failures when running tests in parallel -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkCount>1</forkCount>
+ <reuseForks>false</reuseForks>
+ </configuration>
+ </plugin>
</plugins>
</build>
<reporting>