[jboss-jira] [JBoss JIRA] (WFCORE-2656) DeploymentTestCase.testFilesystemScannerRegistration fails intermittently

Chao Wang (JIRA) issues at jboss.org
Tue Apr 18 04:13:00 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-2656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13394256#comment-13394256 ] 

Chao Wang edited comment on WFCORE-2656 at 4/18/17 4:12 AM:
------------------------------------------------------------

I have also seen this test fails today with error:
{noformat}
Failed tests: 
  DeploymentTestCase.testFilesystemScannerRegistration:253->addDeploymentScanner:799->addDeploymentScanner:817 {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0436: Cannot register capability 'org.wildfly.management.deployment-scanner.dummy' at location '[
    (\"subsystem\" => \"deployment-scanner\"),
    (\"scanner\" => \"dummy\")
]' as it is already registered in context 'global' at location(s) '[[
    (\"subsystem\" => \"deployment-scanner\"),
    (\"scanner\" => \"dummy\")
]]'",
    "rolled-back" => true
} expected:<[success]> but was:<[failed]>
{noformat}

But it fails constantly on my machine, Is this the same cause appeared on CI ? 

Edit: [~ehugonnet] confirmed this on IRC. thanks


was (Author: soul2zimate):
I have also seen this test fails today with error:
{noformat}
Failed tests: 
  DeploymentTestCase.testFilesystemScannerRegistration:253->addDeploymentScanner:799->addDeploymentScanner:817 {
    "outcome" => "failed",
    "failure-description" => "WFLYCTL0436: Cannot register capability 'org.wildfly.management.deployment-scanner.dummy' at location '[
    (\"subsystem\" => \"deployment-scanner\"),
    (\"scanner\" => \"dummy\")
]' as it is already registered in context 'global' at location(s) '[[
    (\"subsystem\" => \"deployment-scanner\"),
    (\"scanner\" => \"dummy\")
]]'",
    "rolled-back" => true
} expected:<[success]> but was:<[failed]>
{noformat}

But it fails constantly on my machine, Is this the same cause appeared on CI ? 

> DeploymentTestCase.testFilesystemScannerRegistration fails intermittently
> -------------------------------------------------------------------------
>
>                 Key: WFCORE-2656
>                 URL: https://issues.jboss.org/browse/WFCORE-2656
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Deployment Scanner, Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>
> https://ci.wildfly.org/project.html?projectId=WildFlyCore_PullRequest&testNameId=5510538220891037036&tab=testDetails
> I fear this has something to do with the capability registry and nothing to do with the scanner itself. It started happening when I added a capability to the scanner so it could consume a capability for the path it references.
> The test does a quick add/remove/add of a scanner resource and it's the 2nd add that fails with a dupicate capability error. But the remove mean the dup is gone. It's intermittent so I fear some race, but there's nothing obvious.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list