[jboss-jira] [JBoss JIRA] (WFCORE-3869) [jdk10] DeletionCollisionTest#testFileLockByRemoveContent failure

Petr Kremensky (JIRA) issues at jboss.org
Tue May 22 09:08:00 EDT 2018


Petr Kremensky created WFCORE-3869:
--------------------------------------

             Summary: [jdk10] DeletionCollisionTest#testFileLockByRemoveContent failure
                 Key: WFCORE-3869
                 URL: https://issues.jboss.org/browse/WFCORE-3869
             Project: WildFly Core
          Issue Type: Bug
          Components: Deployment Scanner, Test Suite
    Affects Versions: 5.0.0.Beta4
            Reporter: Petr Kremensky
            Assignee: ehsavoie Hugonnet


DeletionCollisionTest#testFileLockByRemoveContent from deployment-repository module of wildfly-core fails with JDK10, works fine with JDK9.
   
*reproduce*
{noformat}
wildfly-core]$ mvn  test -Dtest=DeletionCollisionTest#testFileLockByRemoveContent -DtestLogToFile=false -pl deployment-repository
...
[INFO] Running org.jboss.as.repository.DeletionCollisionTest
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.307 s <<< FAILURE! - in org.jboss.as.repository.DeletionCollisionTest
[ERROR] testFileLockByRemoveContent(org.jboss.as.repository.DeletionCollisionTest)  Time elapsed: 0.301 s  <<< FAILURE!
java.lang.AssertionError
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at org.jboss.as.repository.DeletionCollisionTest.testFileLockByRemoveContent(DeletionCollisionTest.java:117)

{noformat}
   
Exception expected by the test - [WFLYDR0019|https://github.com/wildfly/wildfly-core/blob/master/deployment-repository/src/test/java/org/jboss/as/repository/DeletionCollisionTest.java#L117]
{noformat}
Caused by: org.jboss.as.repository.ExplodedContentException: WFLYDR0019: Deployment is locked by another operation
	at org.jboss.as.repository.ContentRepositoryImpl.readContent(ContentRepositoryImpl.java:550)
	at org.jboss.as.repository.DeletionCollisionTest.lambda$testFileLockByRemoveContent$3(DeletionCollisionTest.java:111)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
{noformat}
   
Actual exception thrown with JDK10
{noformat}
Caused by: org.jboss.as.repository.ExplodedContentException: WFLYDR0020: Error accessing deployment files
	at org.jboss.as.repository.ContentRepositoryImpl.readContent(ContentRepositoryImpl.java:563)
	at org.jboss.as.repository.DeletionCollisionTest.lambda$testFileLockByRemoveContent$3(DeletionCollisionTest.java:111)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:844)
Caused by: java.io.FileNotFoundException: target
	at org.jboss.as.repository.PathUtil.getFile(PathUtil.java:376)
	at org.jboss.as.repository.PathUtil.getFile(PathUtil.java:374)
	at org.jboss.as.repository.PathUtil.getFile(PathUtil.java:374)
	at org.jboss.as.repository.PathUtil.getFile(PathUtil.java:374)
	at org.jboss.as.repository.PathUtil.getFile(PathUtil.java:374)
	at org.jboss.as.repository.PathUtil.getFile(PathUtil.java:374)
	at org.jboss.as.repository.PathUtil.readFile(PathUtil.java:356)
	at org.jboss.as.repository.ContentRepositoryImpl.readContent(ContentRepositoryImpl.java:554)
	... 5 more
{noformat}
Environment:
{noformat}
Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297; 2018-02-24T20:49:05+01:00)
Maven home: /usr/lib/maven
Java version: 10.0.1, vendor: Oracle Corporation
{noformat}




--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list