-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKPORT 2.19.2][#18941] DocDB: Add debug view for SharedLockManager
Summary: Original commit: 816f669 / D28239 Adds a debug view to each tablet in the tserver debug UI which displays metadata about actively held shared in-memory locks. Useful for debugging scenarios where we suspect transactions may be stuck or holding these locks longer than expected. Jira: DB-7792 Test Plan: 1. Apply gist at https://gist.github.com/robertsami/544eec99d10a16325d567192c2a00b19 2. Setup cluster: ``` bin/yb-ctl create --rf=1 --data_dir ~/yugabyte-data --tserver_flags 'enable_wait_queues=true,wait_queue_poll_interval_ms=1000,yb_enable_read_committed_isolation=true,enable_deadlock_detection=true' ``` 3. Create table: ``` create table foo (a int primary key, b int); insert into foo select generate_series(1, 100), 0; ``` 4. Restart cluster with test pause: ``` bin/yb-ctl restart --tserver_flags 'enable_wait_queues=true,wait_queue_poll_interval_ms=1000,yb_enable_read_committed_isolation=true,enable_deadlock_detection=true,TEST_writequery_pause_after_locks=1000000' ``` 5. Issue query and check debug page to confirm info is properly displayed Jenkins: urgent Reviewers: bkolagani, sergei Reviewed By: bkolagani Subscribers: bogdan, ybase, rthallam Differential Revision: https://phorge.dev.yugabyte.com/D28270
- Loading branch information
1 parent
939af2c
commit f5330e7
Showing
4 changed files
with
87 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters