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

CLI Command allows graceful failover for a down node

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.0
    • 3.0
    • tools
    • Security Level: Public
    • None
    • True for all operating systems
    • Untriaged
    • Unknown

    Description

      1. Create 3 node cluster
      2. Bring 1 node down
      3. Using CLI graceful failover the down node

      In Step 3, CLI allows graceful over and rebalance fails. In UI we do now allow this, only hard failover for a node that is down. The CLI should have similar behavior as the UI

      Example: In the example, we have a 3 node cluster 10.6.2.144, 10.6.2.145, 10.6.2.150 (we stop this node in process) and then use CLI to do graceful failover. See how it happens and rebalance fails

      [root@palm-10308 bin]# ./couchbase-cli failover -c 10.6.2.144:8091 --server-failover:10.6.2.150:8091
      ERROR: option --server-failover:10.6.2.150:8091 not recognized
      [root@palm-10308 bin]# ./couchbase-cli failover -c 10.6.2.144:8091 --server-failover=10.6.2.150:8091
      ERROR: Username cannot be empty. Please use -u or set environment variable CB_REST_USERNAME.
      [root@palm-10308 bin]# ./couchbase-cli failover -c 10.6.2.144:8091 --server-failover=10.6.2.150:8091 -u Administrator -p password
      INFO: graceful failover
      Rebalance failed. See logs for detailed reason. You can try rebalance again.

      Attachments

        For Gerrit Dashboard: MB-11546
        # Subject Branch Project Status CR V

        Activity

          People

            parag Parag Agarwal (Inactive)
            parag Parag Agarwal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty