Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-61888

The Failover and Graceful Failover REST APIs should provide a way to assert the state of the cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • Morpheus
    • 7.2.5, 7.6.1
    • ns_server
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      The failover and graceful-failover REST APIs don't provide a way to assert the state of the cluster. As such it's possible for a client to check the state of the cluster and see that all nodes are active and by the time the client invokes failover, one or more nodes are already failed over.

      It is quite possible the client would change their mind about invoking failover if they knew that their understanding of the state of the cluster was out-of-date.

      I think this can be solved relatively easily: we just add optional arguments to the APIs around cluster state. E.g.

      • activeNodes: if specified, the set of active nodes must identically equal this list else failover fails
      • inactiveFailed: same as above but checking the nodes the client believes to be failed over
      • inactiveAdded: same as above but checking for freshly added nodes

      Attachments

        Issue Links

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

          Activity

            People

              Abhijeeth.Nuthan Abhijeeth Nuthan
              dfinlay Dave Finlay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty