[
https://issues.jboss.org/browse/WFCORE-3406?page=com.atlassian.jira.plugi...
]
Chao Wang updated WFCORE-3406:
------------------------------
Steps to Reproduce:
1. From
wildfly-core/testsuite/domain/target/domains/OperationCancellationTestCase/added-modules/org/wildfly/extension/blocker-test,
copy the blocker-test extension directory made for OperationCancellationTestCase (include
jar and module.xml) into WildFly module
wildfly/dist/target/wildfly-12.0.0.Alpha1-SNAPSHOT/modules/system/layers/base/org/wildfly/extension/
2. Add necessary blocker-test extension and subsystem into standalone.xml
{code}
<extension module="org.wildfly.extension.blocker-test"/>
<subsystem xmlns="urn:wildfly:extension:blocker-test:1.0"/>
{code}
(Do the same for domain configuration files, if it needs to see correct behaviors in
domain mode)
3. Start WildFly in standalone mode, execute block operation longer than 15 seconds from
first CLI terminal:
{code}
/subsystem=blocker-test:block(block-point=MODEL,block-time=50000) (standalone)
/host=master/subsystem=blocker-test:block(block-point=MODEL,block-time=5000,host=master)
(domain)
{code}
4. On the second CLI terminal:
standalone:
{code}
/core-service=management/service=management-operations:find-non-progressing-operation
{
"outcome" => "success",
"result" => undefined
}
/core-service=management/service=management-operations:cancel-non-progressing-operation
{
"outcome" => "failed",
"failure-description" => "WFLYDM0089: No operation was found that
has been holding the operation execution write lock for long than [15] seconds",
"rolled-back" => true
}
{code}
domain:
{code}
/host=master/core-service=management/service=management-operations:find-non-progressing-operation()
{
"outcome" => "success",
"result" => "2130691342"
}
/host=master/core-service=management/service=management-operations:cancel-non-progressing-operation()
{
"outcome" => "success",
"result" => "2130691342"
}
{code}
find-non-progressing-operation doesn't return the blocking
operation
--------------------------------------------------------------------
Key: WFCORE-3406
URL:
https://issues.jboss.org/browse/WFCORE-3406
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Claudio Miranda
The find-non-progressing-operation operation of
/core-service=management/service=management-operations doesn't return the operation id
of a blocking operation on standalone. It works on domain mode.
To simulate the blocking operation, install the BlockingExtension from testsuite and call
{code}
/subsystem=blocker-test:block(block-point=MODEL,block-time=50000}
{code}
Open another jboss-cli.sh and call
{code}
/core-service=management/service=management-operations:find-non-progressing-operation
{code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)