-
Notifications
You must be signed in to change notification settings - Fork 1k
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-admin] Add option to list all followers of tablets in list_tablets #11448
Labels
kind/new-feature
This is a request for a completely new feature
Comments
kkg-yb
added a commit
that referenced
this issue
Feb 22, 2022
…t_tablets Summary: Add an option include_followers to yb-admin list_tablet PS: This is my first Phabricator diff. So in case I have missed anything please do let me know. Output now look like the following ``` build/latest/bin/yb-admin --master_addresses 10.150.3.44:7100,10.150.2.153:7100,10.150.3.177:7100 list_tablets tableid.2cbca7ceb820419cb26ee025b8ae2090 5 include_followers f88c954a85964c7a8266697c5e2d1878 partition_key_start: "" partition_key_end: "\002\252" 10.150.3.177:9100 2365adfdf0c346f9969c61314e20f877 10.150.3.44:9100,10.150.2.153:9100 809b0b38c8a54b87a54d4d5bd3944890 partition_key_start: "\002\252" partition_key_end: "\005T" 10.150.3.44:9100 a8846980932a496cb8e5d1959c283928 10.150.2.153:9100,10.150.3.177:9100 ab33f9905bcb46c2904dfd657a41f2bb partition_key_start: "\005T" partition_key_end: "\007\376" 10.150.3.177:9100 2365adfdf0c346f9969c61314e20f877 10.150.3.44:9100,10.150.2.153:9100 b8d08036a22546c2bf1e29282fe9b512 partition_key_start: "\007\376" partition_key_end: "\n\250" 10.150.3.44:9100 a8846980932a496cb8e5d1959c283928 10.150.2.153:9100,10.150.3.177:9100 e7658b89afcb40ecb0c97cf85d8f86c2 partition_key_start: "\n\250" partition_key_end: "\rR" 10.150.3.177:9100 2365adfdf0c346f9969c61314e20f877 10.150.3.44:9100,10.150.2.153:9100 ``` ``` build/latest/bin/yb-admin --master_addresses 10.150.3.44:7100,10.150.2.153:7100,10.150.3.177:7100 list_tablets tableid.2cbca7ceb820419cb26ee025b8ae2090 1 include_followers json { "tablets": [ { "id": "f88c954a85964c7a8266697c5e2d1878", "partition_key_start": "", "partition_key_end": "02AA", "leader": { "uuid": "2365adfdf0c346f9969c61314e20f877", "endpoint": "10.150.3.177:9100" }, "followers": [ { "uuid": "46f33515da9140088c904aee3d24e1bc", "endpoint": "10.150.2.153:9100" }, { "uuid": "a8846980932a496cb8e5d1959c283928", "endpoint": "10.150.3.44:9100" } ] } ] } ``` Test Plan: Ran ./yb_build.sh --cxx-test yb-admin-test Reviewers: bogdan, jhe, oleg Reviewed By: oleg Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D15414
jayant07-yb
pushed a commit
to jayant07-yb/yugabyte-db
that referenced
this issue
Mar 8, 2022
…s in list_tablets Summary: Add an option include_followers to yb-admin list_tablet PS: This is my first Phabricator diff. So in case I have missed anything please do let me know. Output now look like the following ``` build/latest/bin/yb-admin --master_addresses 10.150.3.44:7100,10.150.2.153:7100,10.150.3.177:7100 list_tablets tableid.2cbca7ceb820419cb26ee025b8ae2090 5 include_followers f88c954a85964c7a8266697c5e2d1878 partition_key_start: "" partition_key_end: "\002\252" 10.150.3.177:9100 2365adfdf0c346f9969c61314e20f877 10.150.3.44:9100,10.150.2.153:9100 809b0b38c8a54b87a54d4d5bd3944890 partition_key_start: "\002\252" partition_key_end: "\005T" 10.150.3.44:9100 a8846980932a496cb8e5d1959c283928 10.150.2.153:9100,10.150.3.177:9100 ab33f9905bcb46c2904dfd657a41f2bb partition_key_start: "\005T" partition_key_end: "\007\376" 10.150.3.177:9100 2365adfdf0c346f9969c61314e20f877 10.150.3.44:9100,10.150.2.153:9100 b8d08036a22546c2bf1e29282fe9b512 partition_key_start: "\007\376" partition_key_end: "\n\250" 10.150.3.44:9100 a8846980932a496cb8e5d1959c283928 10.150.2.153:9100,10.150.3.177:9100 e7658b89afcb40ecb0c97cf85d8f86c2 partition_key_start: "\n\250" partition_key_end: "\rR" 10.150.3.177:9100 2365adfdf0c346f9969c61314e20f877 10.150.3.44:9100,10.150.2.153:9100 ``` ``` build/latest/bin/yb-admin --master_addresses 10.150.3.44:7100,10.150.2.153:7100,10.150.3.177:7100 list_tablets tableid.2cbca7ceb820419cb26ee025b8ae2090 1 include_followers json { "tablets": [ { "id": "f88c954a85964c7a8266697c5e2d1878", "partition_key_start": "", "partition_key_end": "02AA", "leader": { "uuid": "2365adfdf0c346f9969c61314e20f877", "endpoint": "10.150.3.177:9100" }, "followers": [ { "uuid": "46f33515da9140088c904aee3d24e1bc", "endpoint": "10.150.2.153:9100" }, { "uuid": "a8846980932a496cb8e5d1959c283928", "endpoint": "10.150.3.44:9100" } ] } ] } ``` Test Plan: Ran ./yb_build.sh --cxx-test yb-admin-test Reviewers: bogdan, jhe, oleg Reviewed By: oleg Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D15414
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
** Add an option include_followers to yb-admin list_tablets **
The text was updated successfully, but these errors were encountered: