Skip to content

IGNITE-29108 Add explicit lock hold time metrics - #13667

Open
NSAmelchev wants to merge 1 commit into
apache:masterfrom
NSAmelchev:ignite-29108
Open

NSAmelchev wants to merge 1 commit into
apache:masterfrom
NSAmelchev:ignite-29108

Conversation

@NSAmelchev

Copy link
Copy Markdown
Contributor

There was no way to see how long explicit locks acquired with IgniteCache.lock() are held: a leaked lock blocks other threads and the partition map exchange, but it is neither a transaction nor a future, so neither the metrics nor the long running operations dump showed it.

Two metrics are added to the tx registry, collected on the node that acquired the lock:

  • MaxExplicitLockHoldTime — maximum hold time of the explicit locks currently held, in milliseconds.
  • ExplicitLockHoldTimeHistogram — hold times of released explicit locks, one sample per lock()/lockAll() call.

The "Pending explicit locks" dump of a stuck PME now shows the hold time of every key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant