-
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.
[#20335] DocDB: Use MonoClock for write query metric
Summary: `CoarseMonoClock` time has been found to move backwards in time. This is likely due to its reliance on clock `jiffies` which can overflow, and by default is set to `INITIAL_JIFFIES` to force an overflow 5minutes after the machine boots up. The write query metric `kQlWriteLatency` requires microsecond precision which is not provided by `CoarseMonoClock`. This diff switches the write query duration to use `MonoClock` which provided nanosecond granularity. This is not a frequent operation call so the impact from this is minimal. Jira: DB-9320 Test Plan: TestMonoTime.DontMoveBackwards Reviewers: rthallam, qhu, esheng Reviewed By: rthallam, esheng Subscribers: ybase Differential Revision: https://phorge.dev.yugabyte.com/D37866
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 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