Skip to content

Commit

Permalink
server/node: add cluster id mismatch reason in error (tikv#1825)
Browse files Browse the repository at this point in the history
* server/node: add cluster id mismatch reason in error
  • Loading branch information
nolouch authored May 12, 2017
1 parent b644e99 commit cb1369f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ impl<C> Node<C>

let ident = res.unwrap();
if ident.get_cluster_id() != self.cluster_id {
error!("cluster ID mismatch: local_id {} remote_id {}",
error!("cluster ID mismatch: local_id {} remote_id {}. \
you are trying to connect to another cluster, please reconnect to the correct PD",
ident.get_cluster_id(),
self.cluster_id);
process::exit(1);
Expand Down

0 comments on commit cb1369f

Please sign in to comment.