[jboss-jira] [JBoss JIRA] (WFLY-5224) Unable to read resource after changing process-id-* in transactions subsystem

Amos Feng (JIRA) issues at jboss.org
Thu Sep 10 01:36:00 EDT 2015


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

Amos Feng commented on WFLY-5224:
---------------------------------

[~maeste] can you take a look at this issue ?
After switching to use process-id-socket-bindings by
{code}
batch
/socket-binding-group=standard-sockets/socket-binding=txn-socket-process-id:add(port=4714)
/subsystem=transactions:undefine-attribute(name=process-id-uuid)
/subsystem=transactions:write-attribute(name=process-id-socket-binding,value=txn-socket-process-id)
run-batch --verbose
{code}

the read-resouce returns failed
{code}
[standalone at localhost:9990 /] /subsystem=transactions:read-resource
{
    "outcome" => "failed",
    "rolled-back" => true
}
{code}

I think that it might be related to the validation codes we are using to check the process-id-* attrubites
https://github.com/jbosstm/jboss-as/blob/5_BRANCH/transactions/src/main/java/org/jboss/as/txn/subsystem/TransactionSubsystemRootResourceDefinition.java#L346

I tried to comment the validateUpdateModel and it works that "read-resource" returns success. I noticed that the these validate codes added by you So can you give me some ideas to fix this issue. 
{code}
private static class ProcessIdWriteHandler extends ReloadRequiredWriteAttributeHandler {
    @Override
        protected void finishModelStage(final OperationContext context, final ModelNode operation, String attributeName,
                                        ModelNode newValue, ModelNode oldValue, final Resource model) throws OperationFailedException {
    ...
    // validateUpdatedModel(context, model);
   }
}
{code}

> Unable to read resource after changing process-id-* in transactions subsystem
> -----------------------------------------------------------------------------
>
>                 Key: WFLY-5224
>                 URL: https://issues.jboss.org/browse/WFLY-5224
>             Project: WildFly
>          Issue Type: Bug
>          Components: Transactions
>            Reporter: Harald Pehl
>            Assignee: Amos Feng
>            Priority: Critical
>             Fix For: 10.0.0.CR1
>
>
> After switching between {{process-id-uuid}} and {{process-id-socket-bindings}} as described in WFLY-2623 a follow-up {{/subsystem=transactions:read-resource}} fails until the server / host is reloaded. 
> The resource should be readable and return an {{reload-required}} header. 



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list