Karaf
  1. Karaf
  2. KARAF-1321

Inconsistent behavior of cluster:group-quit

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: cellar-2.2.3
    • Fix Version/s: cellar-3.0.0, cellar-2.2.4
    • Component/s: cellar-core
    • Labels:
      None
    • Environment:

      Ubuntu 11.04, Karaf-2.2.6-SNAPSHOT from 20120403, Cellar-2.2.4-SNAPSHOT from 20120312

      Description

      karaf@trun> cluster:group-list
      Node Group
      opti.k313.int:5701 default
      opti.k313.int:5702 default
      opti.k313.int:5703 group1

      • opti.k313.int:5704 group1
        karaf@trun>

      /*** NOTE: this might be needed to provoke the issue, but not sure
      karaf@trun> cluster:group-quit
      No result received within given timeout
      karaf@trun>
      */

      karaf@trun> cluster:group-quit group1
      log4j:ERROR Attempted to append to closed appender named [out].
      log4j:ERROR Attempted to append to closed appender named [out].
      Node Group

      • opti.k313.int:5704 default
        opti.k313.int:5701 default
        opti.k313.int:5702 default
        karaf@trun>

      A consequent call to group-join on the same node leads to the following result (the node gets duplicated):

      karaf@trun> cluster:group-join group1
      log4j:ERROR Attempted to append to closed appender named [out].
      log4j:ERROR Attempted to append to closed appender named [out].
      Node Group

      • opti.k313.int:5704 default
        opti.k313.int:5701 default
        opti.k313.int:5702 default
        opti.k313.int:5703 group1
      • opti.k313.int:5704 group1
        karaf@trun>

      Still, after restarting any node from the list, the following info gets shown on it:

      karaf@trun> cluster:group-list
      Node Group
      opti.k313.int:5703 default
      opti.k313.int:5704 default
      opti.k313.int:5701 default

      • opti.k313.int:5702 default
        opti.k313.int:5703 group1
        karaf@trun>

        Activity

        Hide
        Jean-Baptiste Onofré added a comment -

        There is no issue here. But agreed that the output is not very useful. It makes sense to display group and a list of members.

        Show
        Jean-Baptiste Onofré added a comment - There is no issue here. But agreed that the output is not very useful. It makes sense to display group and a list of members.
        Hide
        Alexey Bespaly added a comment -

        Cellar 2.2.4 snapshot as of 08.05.2012:

        karaf@trun> cluster:group-list
        Group Members

        • [default ] [172.27.210.10:5702 172.27.210.10:5701* 172.27.210.10:5704 172.27.210.10:5703 ]
        • [group1 ] [172.27.210.10:5702 172.27.210.10:5701* ]
          karaf@trun>karaf@trun> cluster:group-quit group1
          Group Members
        • [default ] [172.27.210.10:5702 172.27.210.10:5701* 172.27.210.10:5704 172.27.210.10:5703 ]
          karaf@trun>

        There is no 172.27.210.10:5701 in group1 anymore, but 172.27.210.10:5702 has also disappeared!

        Still:

        karaf@trun> cluster:group-join group1
        log4j:ERROR Attempted to append to closed appender named [out].
        log4j:ERROR Attempted to append to closed appender named [out].
        Group Members

        • [default ] [172.27.210.10:5702 172.27.210.10:5701* 172.27.210.10:5704 172.27.210.10:5703 ]
        • [group1 ] [172.27.210.10:5702 172.27.210.10:5701* ]
          karaf@trun>

        Now, BOTH are back.

        Show
        Alexey Bespaly added a comment - Cellar 2.2.4 snapshot as of 08.05.2012: karaf@trun> cluster:group-list Group Members [default ] [172.27.210.10:5702 172.27.210.10:5701* 172.27.210.10:5704 172.27.210.10:5703 ] [group1 ] [172.27.210.10:5702 172.27.210.10:5701* ] karaf@trun>karaf@trun> cluster:group-quit group1 Group Members [default ] [172.27.210.10:5702 172.27.210.10:5701* 172.27.210.10:5704 172.27.210.10:5703 ] karaf@trun> There is no 172.27.210.10:5701 in group1 anymore, but 172.27.210.10:5702 has also disappeared! Still: karaf@trun> cluster:group-join group1 log4j:ERROR Attempted to append to closed appender named [out] . log4j:ERROR Attempted to append to closed appender named [out] . Group Members [default ] [172.27.210.10:5702 172.27.210.10:5701* 172.27.210.10:5704 172.27.210.10:5703 ] [group1 ] [172.27.210.10:5702 172.27.210.10:5701* ] karaf@trun> Now, BOTH are back.
        Hide
        Jean-Baptiste Onofré added a comment -

        Could you perform group-list between each command ?

        Show
        Jean-Baptiste Onofré added a comment - Could you perform group-list between each command ?
        Hide
        Jean-Baptiste Onofré added a comment -

        The commands work fine, but the output of group-quite display only the group of the node that you define, not all node:

        karaf@root> cluster:group-quit test
        Group Members

        • [default ] [vostro.local:5702 vostro.local:5701* ]
          karaf@root> cluster:group-
          cluster:group-create cluster:group-delete cluster:group-join cluster:group-list cluster:group-pick cluster:group-quit cluster:group-set
          karaf@root> cluster:group-list
          Group Members
        • [default ] [vostro.local:5702 vostro.local:5701* ]
          [test ] [vostro.local:5702 ]
        Show
        Jean-Baptiste Onofré added a comment - The commands work fine, but the output of group-quite display only the group of the node that you define, not all node: karaf@root> cluster:group-quit test Group Members [default ] [vostro.local:5702 vostro.local:5701* ] karaf@root> cluster:group- cluster:group-create cluster:group-delete cluster:group-join cluster:group-list cluster:group-pick cluster:group-quit cluster:group-set karaf@root> cluster:group-list Group Members [default ] [vostro.local:5702 vostro.local:5701* ] [test ] [vostro.local:5702 ]
        Hide
        Jean-Baptiste Onofré added a comment -

        Do you expect that the complete group map is displayed after group-quite or only the node that you changed ?

        Show
        Jean-Baptiste Onofré added a comment - Do you expect that the complete group map is displayed after group-quite or only the node that you changed ?
        Hide
        Alexey Bespaly added a comment -

        Well, the operation changes two objects - the node and the group, so displaying properties of only one of them in the end is probably not very consistent... and in my specific case, was even ambiguous

        Show
        Alexey Bespaly added a comment - Well, the operation changes two objects - the node and the group, so displaying properties of only one of them in the end is probably not very consistent... and in my specific case, was even ambiguous
        Hide
        Jean-Baptiste Onofré added a comment -

        Agree, in both case, I will display to complete list (as a cluster:group-list output).

        Show
        Jean-Baptiste Onofré added a comment - Agree, in both case, I will display to complete list (as a cluster:group-list output).
        Hide
        Alexandr Palto added a comment -

        Retested locally, now the behavior is predictable.

        Show
        Alexandr Palto added a comment - Retested locally, now the behavior is predictable.

          People

          • Assignee:
            Jean-Baptiste Onofré
            Reporter:
            Alexey Bespaly
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development