-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the metric of shadow cache for relatively small working set
### What changes are proposed in this pull request? Update the shadow cache metrics in 'get' method Expose shadow cache metrics by calling the incrementCounts method in CacheContext ### Why are the changes needed? Without this change, the shadow cache metrics would be only updated in 'get' method, which might cause the size of working set inaccurate (far below the real value) especially when the working set is lower than the cache capacity. Our customer can also get table level metrics by overriding the incrementCounts method pr-link: #13794 change-id: cid-831719572c6d1bbfcf9f9bbf9f9662cf4b702327
- Loading branch information
Showing
11 changed files
with
139 additions
and
76 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
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
Oops, something went wrong.