Skip to content

HDDS-6435. Add read lock waiting and held time metrics#3180

Merged
rakeshadr merged 11 commits intoapache:masterfrom
tanvipenumudy:HDDS-6435
Apr 5, 2022
Merged

HDDS-6435. Add read lock waiting and held time metrics#3180
rakeshadr merged 11 commits intoapache:masterfrom
tanvipenumudy:HDDS-6435

Conversation

@tanvipenumudy
Copy link
Contributor

@tanvipenumudy tanvipenumudy commented Mar 10, 2022

What changes were proposed in this pull request?

To provide useful information by exposing read lock waiting, held time metrics and log messages to understand OzoneManagerLock timestamp such as:

longestReadLockWaitingTime: longest time (ms) a read lock was waiting since the last measurement
longestReadLockHeldTime: longest time (ms) a read lock was held since the last measurement
numReadLockLongWaiting: number of times the read lock has been waiting longer than the default threshold configuration
numReadLockLongHeld: number of times the read lock has been held longer than the default threshold configuration

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-6435

How was this patch tested?

Added JUnit tests.

Copy link
Contributor

@rakeshadr rakeshadr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 LGTM Thanks @tanvipenumudy for the useful contribution!

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tanvipenumudy for updating the patch.

Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tanvipenumudy for updating the patch. Can you please also check the concurrency problem?

@tanvipenumudy tanvipenumudy requested a review from adoroszlai April 4, 2022 10:53
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tanvipenumudy for updating the patch, LGTM.

@adoroszlai adoroszlai requested a review from rakeshadr April 4, 2022 13:18
@rakeshadr rakeshadr merged commit c23aae0 into apache:master Apr 5, 2022
@rakeshadr
Copy link
Contributor

Thanks @tanvipenumudy for the useful contribution and continuous efforts!

Thanks a lot @adoroszlai for pointing out potential issues during reviews and the patch came really well!

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.

3 participants