-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
99887: distsql: fix sql.mem.distsql.current metric r=yuzefovich a=yuzefovich **sql: don't create unused monitor and account** As of 961e66f we no longer need to create memory monitors and accounts for sub- and post-queries so this commit removes them. Release note: None **util/mon: remove redundant locking in NewMonitorInheritWithLimit** This locking is no longer needed as of 472e740. Release note: None **distsql: fix sql.mem.distsql.current metric** This commit fixes double counting of remote DistSQL flows' memory usage against `sql.mem.distsql.current` metric. This was the case since we passed the metric to both the `flow` monitor (created for all flows, both local and remote) and the `distsql` monitor (which tracks the memory usage of all remote flows). This is now fixed by only passing the metric in the former case. Fixes: #91787. Release note (bug fix): Previously, `sql.mem.distsql.current` metric would double count the memory usage of remote DistSQL flows and this has been fixed. Co-authored-by: Yahor Yuzefovich <[email protected]>
- Loading branch information
Showing
6 changed files
with
13 additions
and
36 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
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