You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
113649: execstats: add latch wait time into cumulative contention time r=yuzefovich a=DrewKimball
#### sql: add setting to enable registering latch wait contention events
This commit adds a session setting (default off) that will cause contention
events emitted by the latch table to be included in the `*_contention_events`
virtual tables. This behavior is hidden behind a setting because latch wait
events are more common than events emitted by the lock table. Tracking them
in the virtual tables could increase system load and flood the statement
insights with uninteresting events. For now, this setting does nothing, but
the following commit will use it.
Informs #103713
Release note: None
#### execstats: add latch wait time into cumulative contention time
This patch adds a field `IsLatch` to the `ContentionEvent` protobuf struct that
indicates that a contention event was emitted by the latch table. The event is
added to the trace and used to increment the contention time metrics, but is
only added to the contention registry if
`register_latch_wait_contention_events` is set to true.
This commit also propagates the transaction ID into the latch manager and the
contention events listener. This information is used during a latch wait event
to distinguish between time waiting for a transaction's own requests
(e.g. for QueryIntent) and for real contention between different transactions.
Fixes#103713
Release note (ui change): The contention time metric now includes time spent
waiting to acquire latches in addition to time spent acquiring locks. This
applies to both the cumulative contention time visible in the db console and
the annotations of an `EXPLAIN ANALYZE` output.
143382: go.mod: bump Pebble to 96302028f139 r=RaduBerinde a=RaduBerinde
Changes:
* [`96302028`](cockroachdb/pebble@96302028) db: embed DataCorruptionInfo into corruption errors
* [`a3c4df0a`](cockroachdb/pebble@a3c4df0a) db: add mechanics for compaction-time value separation
* [`afe96a7e`](cockroachdb/pebble@afe96a7e) sstable: add redaction to bit flip check
* [`918c6dd6`](cockroachdb/pebble@918c6dd6) manifest: add L0Sublevels sanity checks, fix L0Index
* [`a45eb824`](cockroachdb/pebble@a45eb824) sstable: do a bit flip computation on a checksum mismatch in the Reader
* [`8701659b`](cockroachdb/pebble@8701659b) db: fix CompactionPickerTargetLevel test
Release note: none.
Epic: none.
Co-authored-by: Drew Kimball <[email protected]>
Co-authored-by: Radu Berinde <[email protected]>
0 commit comments