Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-142

Member Remove events are not deterministic

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.7.0
    • None
    • None
    • None

    Description

      During recovery scenarios where two pods fail, the operator must remove 2 nodes from the cluster. Half the time the events show up as member 0 remove followed by member 1 removed, and the other half of the time, the opposite order takes place. For testing it would be best to deterministically remove nodes.

      node_test.go:701: Expected events to be:

      Type: Normal | Reason: ServiceCreated | Message: Service for admin console `test-couchbase-7fxh7-ui` was created

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0000 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0001 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0002 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0003 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0004 added to cluster

      Type: Normal | Reason: RebalanceStarted | Message: A rebalance has been started to balance data across the cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0005 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0006 added to cluster

      Type: Normal | Reason: RebalanceStarted | Message: A rebalance has been started to balance data across the cluster

      Type: Normal | Reason: MemberRemoved | Message: Existing member test-couchbase-7fxh7-0001 removed from the cluster

      Type: Normal | Reason: MemberRemoved | Message: Existing member test-couchbase-7fxh7-0000 removed from the cluster

       

      but got:

      Type: Normal | Reason: ServiceCreated | Message: Service for admin console `test-couchbase-7fxh7-ui` was created

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0000 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0001 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0002 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0003 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0004 added to cluster

      Type: Normal | Reason: RebalanceStarted | Message: A rebalance has been started to balance data across the cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0005 added to cluster

      Type: Normal | Reason: NewMemberAdded | Message: New member test-couchbase-7fxh7-0006 added to cluster

      Type: Normal | Reason: RebalanceStarted | Message: A rebalance has been started to balance data across the cluster

      Type: Normal | Reason: MemberRemoved | Message: Existing member test-couchbase-7fxh7-0000 removed from the cluster

      Type: Normal | Reason: MemberRemoved | Message: Existing member test-couchbase-7fxh7-0001 removed from the cluster

       

      This test passes 50% of the time due to the final two events

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mikew Mike Wiederhold [X] (Inactive)
            korrigan.clark Korrigan Clark (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty