git-hulk opened a new pull request, #173: URL: https://github.com/apache/kvrocks-controller/pull/173
Before running the failover command, the cluster state is: ``` |-------|------------------------------------------|----------------|--------|-----------| | SHARD | NODE ID | ADDRESS | ROLE | MIGRATING | |-------|------------------------------------------|----------------|--------|-----------| | 0 | YNgiFCBjjRYJYA3k9kyGmQrCESfgQdMhmQrdfG1g | 127.0.0.1:7770 | MASTER | NO | | 0 | gJy7c9V7Yn1DHMdOrNSrUBtqW4AroOFsHHuk6mLy | 127.0.0.1:7771 | SLAVE | NO | |-------|------------------------------------------|----------------|--------|-----------| ``` Then run the failover command with: ``` ❯ ./_build/kvctl failover shard 0 -n test-ns -c test-cluster failover shard 0 successfully, new master id: gJy7c9V7Yn1DHMdOrNSrUBtqW4AroOFsHHuk6mLy. ``` And it will get the cluster: ``` |-------|------------------------------------------|----------------|--------|-----------| | SHARD | NODE ID | ADDRESS | ROLE | MIGRATING | |-------|------------------------------------------|----------------|--------|-----------| | 0 | YNgiFCBjjRYJYA3k9kyGmQrCESfgQdMhmQrdfG1g | 127.0.0.1:7770 | SLAVE | NO | | 0 | gJy7c9V7Yn1DHMdOrNSrUBtqW4AroOFsHHuk6mLy | 127.0.0.1:7771 | MASTER | NO | |-------|------------------------------------------|----------------|--------|-----------| ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
