[jboss-jira] [JBoss JIRA] (WFLY-6782) Unable to add JGroups protocol at a given index via CLI

Ladislav Thon (JIRA) issues at jboss.org
Thu Jul 14 02:10:00 EDT 2016


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

Ladislav Thon commented on WFLY-6782:
-------------------------------------

This is very nice, thanks! What would be even better IMHO is an ability to add a protocol into the stack _before_ or _after_ a given protocol. Something like {{/subsystem=jgroups/stack=udp/protocol=XXX:add(before-protocol=pbcast.GMS)}}. With {{add-index}}, I first have to compute the correct index, which is unfriendly, error-prone and can change in time.

> Unable to add JGroups protocol at a given index via CLI
> -------------------------------------------------------
>
>                 Key: WFLY-6782
>                 URL: https://issues.jboss.org/browse/WFLY-6782
>             Project: WildFly
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 8.2.1.Final, 9.0.2.Final, 10.0.0.Final
>            Reporter: Radoslav Husar
>            Assignee: Radoslav Husar
>             Fix For: 10.1.0.Final
>
>
> Unable to use this via CLI, tests pass since they use management client which won't check against  the operation description:
> {noformat}
> [standalone at localhost:9990 /] /subsystem=jgroups/stack=tcp/protocol=JDBC_PING:add(add-index=4)
> 'add-index' is not found among the supported properties: [socket-binding, module, properties, type]
> {noformat}
> add index is missing in the description, after the fix:
> {noformat}
> [standalone at localhost:9990 /] /subsystem=jgroups/stack=tcp/protocol=MPING:read-operation-description(name=add
> {
>     "outcome" => "success",
>     "result" => {
>         "operation-name" => "add",
>         "description" => "Add a protocol to a protocol stack.",
>         "request-properties" => {
>             "add-index" => {
>                 "type" => INT,
>                 "description" => "If specified inserts the protocol at the given (zero-based) index. If null it will add at the end.",
>                 "expressions-allowed" => false,
>                 "required" => false,
>                 "nillable" => true
>             },
> {noformat}



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


More information about the jboss-jira mailing list