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
147133: sqlstats: fix data race between collector and ingester r=alyshanjahani-crl a=dhartunian
I've admittedly not been able to reproduce the data race observed in the same `*sqlstats.RecordedStmtStats` object in two different locations. One of these is now redunant. The transactionID set in the `StatsCollector` happens before the data is processed by the `SQLStatsIngester` so the setting of the transactionID in the ingester is removed. If it happens to get statements without corresponding transactionIDs, that should be a bug.
The reason this was introduced was likely
#141767 which unified the types used by the two components. Previously, they were different structs and ownership was clear and required editing the transactionID twice.
This PR also introduces a `doc.go` file to the `sslocal` package in an effort to guide the reviewer and provide context for future work. The diagram reflects the changes in this commit.
Resolves: #146796
Release note: None
Co-authored-by: David Hartunian <[email protected]>
0 commit comments