sql: connExectuor extraTxnState race condition #75752
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-foundations
SQL Foundations Team (formerly SQL Schema + SQL Sessions)
Describe the problem
connExecutor
has a field namedextraTxnState
. This field stores information related to a transaction in addition to thetxnState
. However, unlikestate
field,extraTxnState
is not protected by a mutex.This can cause the data race conditions when a transaction state transition happens while
crdb_internal.node_sessions
virtual table is queried.Write Operation
Read Operation
Failed CI Run
Expected behavior
Race condition should not happen.
The text was updated successfully, but these errors were encountered: