Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[yb-ctl] Look at data_dir while stopping cluster #1728

Open
ndeodhar opened this issue Jul 5, 2019 · 0 comments
Open

[yb-ctl] Look at data_dir while stopping cluster #1728

ndeodhar opened this issue Jul 5, 2019 · 0 comments
Labels
area/ui All issues relating to UI/UX kind/bug This issue is a bug

Comments

@ndeodhar
Copy link
Contributor

ndeodhar commented Jul 5, 2019

If I have two YB clusters running on the same machine (for example, to test 2DC), then I get this error while stopping any cluster:

16:54 $ ./bin/yb-ctl --data_dir ~/yugabyte-data/ stop
Stopping cluster.
2019-07-05 16:54:41,816 ERROR: When looking for process with daemon id master-1, we found the following running process with data dirs /Users/yugabyte/yugabyte-replica-cluster//node-1/disk-1 but expected data dirs to be /Users/yugabyte/yugabyte-data//node-1/disk-1: 99225 /Users/yugabyte/code/yugabyte/build/latest/bin/yb-master --fs_data_dirs /Users/yugabyte/yugabyte-replica-cluster//node-1/disk-1 --webserver_interface 127.0.0.11 --rpc_bind_addresses 127.0.0.11 --v 0 --version_file_json_path=/Users/yugabyte/code/yugabyte/build/debug-clang-dynamic-enterprise-ninja --callhome_enabled=false --replication_factor=1 --yb_num_shards_per_tserver 2 --master_addresses 127.0.0.11:7100
^^^ Encountered errors ^^^

To fix this, we should also look at data_dir and only stop the processes for the relevant cluster instead of throwing this error.

@mbautin mbautin transferred this issue from yugabyte/yugabyte-installation Jul 8, 2019
@mbautin mbautin changed the title Look at data_dir while stopping cluster [yb-ctl] Look at data_dir while stopping cluster Jul 8, 2019
@rkarthik007 rkarthik007 added area/ui All issues relating to UI/UX kind/improve-ux Issues relating to improving user experience. kind/bug This issue is a bug and removed kind/improve-ux Issues relating to improving user experience. labels Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui All issues relating to UI/UX kind/bug This issue is a bug
Projects
None yet
Development

No branches or pull requests

2 participants