This content has been marked as final.
Show 2 replies
-
1. Re: node-identifier length limit
jaysensharma Nov 11, 2015 6:18 AM (in response to pmm)Looks like this limitation is coming from the commit:
"AS7-5135 make sure that the node identifier is validated to make sure nodeName.getBytes().length is <24"
https://github.com/wildfly/wildfly/commit/1fe37204d519bce871219b729b2c78df03f2711f
Exact line is as following:
public static final SimpleAttributeDefinition NODE_IDENTIFIER = new SimpleAttributeDefinitionBuilder(CommonAttributes.NODE_IDENTIFIER, ModelType.STRING, true) .setDefaultValue(new ModelNode().set("1")) .setFlags(AttributeAccess.Flag.RESTART_ALL_SERVICES) - .setAllowExpression(true).build(); + .setAllowExpression(true) + .setValidator(new StringBytesLengthValidator(0,23,true,true)) + .build();
-
2. Re: node-identifier length limit
ctomc Nov 11, 2015 9:30 AM (in response to pmm)This is limit that is enforced by JTS system.
that id is included in Xid that is defined by XA spec: http://pubs.opengroup.org/onlinepubs/009680699/toc.pdf
and as Xid has fixed lenght, we cannot have bigger ids embedded in it.