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

[DocDB] <node-ip>:7000/api/v1/tablet-under-replication does not display correct underreplicated tablets for per-table configs #17197

Closed
1 task done
charleswang234 opened this issue May 5, 2023 · 0 comments
Assignees
Labels
area/docdb YugabyteDB core features good first issue This is a good issue to start contributing! kind/bug This issue is a bug priority/medium Medium priority issue

Comments

@charleswang234
Copy link
Contributor

charleswang234 commented May 5, 2023

Jira Link: DB-6462

Description

<node-ip>:7000/api/v1/tablet-under-replication uses global replication factor and does not account for per-table configurations

Steps to reproduce:

Create a 6 node rf3 universe, with 2 nodes in each of the following azs:

  1. us-west1-a
  2. us-west1-b
  3. us-west1-c

Create a tablespace (rf5) with custom placement info:

CREATE TABLESPACE us_west_1_zone_tablespace
  WITH (replica_placement='{"num_replicas": 5, "placement_blocks": [
    {"cloud":"gcp","region":"us-west1","zone":"us-west1-a","min_num_replicas":2},
    {"cloud":"gcp","region":"us-west1","zone":"us-west1-b","min_num_replicas":2},
    {"cloud":"gcp","region":"us-west1","zone":"us-west1-c","min_num_replicas":1}
    ]}');

    CREATE TABLE single_zone_table (id INTEGER, field text)
  TABLESPACE us_west_1_zone_tablespace SPLIT INTO 1 TABLETS;

Take down a node containing this tablet.

In the <node-ip>:7000/api/v1/tablet-under-replication page, we will not see this tablet-id.

Ex: Tablet Id: b20ca82765444851b1fad9e0489a9bfb
image

<node-ip>:7000/api/v1/tablet-under-replication response:

{"underreplicated_tablets":[{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"ef882b3815944571aa04f2631c182dba"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"cfbaeb1c587846b99dc20e80ca59c94b"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"bdf44de1c97749a789cac333c12c4947"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"a80c295ecf284722aa6a406a28ddcc1a"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"ba5ea01a3a0b48bc9d4b2b8cfa4add90"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"4ebcee4181414f6494857cd2858133d3"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"02674a4a36c54a7bb638722e9ccd6138"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"3f37f73058fb43298adf8204ca690f88"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"320682d439ec430aa27a907228e96255"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"1fd74eed4f1743ef9ca7f1ca637cae7d"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"17456a32b3c243ec92c07199005cdf93"},{"table_uuid":"3565191977cc47b38d10bfb60906091f","tablet_uuid":"1c3e81b3b8064d6dbef4885766b2fd17"},{"table_uuid":"000033f2000030008000000000004000","tablet_uuid":"c6f026bba36545d2b175f29b657dd8f8"},{"table_uuid":"000033f2000030008000000000004000","tablet_uuid":"03554a0168cf4d229f55bcad0373fdd8"},{"table_uuid":"000033f2000030008000000000004000","tablet_uuid":"34cd53a336ff4360ae12bf01e51cd585"},{"table_uuid":"000033f2000030008000000000004000","tablet_uuid":"217d40e55df044afb7a2b893c4497f1f"}]}

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@charleswang234 charleswang234 added kind/bug This issue is a bug area/docdb YugabyteDB core features status/awaiting-triage Issue awaiting triage labels May 5, 2023
@yugabyte-ci yugabyte-ci added the priority/medium Medium priority issue label May 5, 2023
@yugabyte-ci yugabyte-ci removed the status/awaiting-triage Issue awaiting triage label May 16, 2023
@yugabyte-ci yugabyte-ci added the good first issue This is a good issue to start contributing! label May 19, 2023
@yugabyte-ci yugabyte-ci closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docdb YugabyteDB core features good first issue This is a good issue to start contributing! kind/bug This issue is a bug priority/medium Medium priority issue
Projects
None yet
Development

No branches or pull requests

4 participants