Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
110898: sql, insights: record failed transactions due to commit r=xinhaoz a=xinhaoz Previously we did not record failed transactions due to a failed commit in the insights system. This commit captures those transactions in the insights system by propagating the payload error associated with a failed commit to the stats recording step. If the transaction error is nil, we will attempt to find the last statement error for scenarios where the error is not propagated to the payload of TxnCommit/Aborted states. In addition, the `Status` (completed or failed) of a txn is now based on whether the transaction has committed at the time of insights recording. Previously it was also based on the presence of failed stmts. Fixes: #110846 Release note (ui change): In the Insights page in DB Console, users can now see failed transactions and their error messages when the transaction fails on the COMMIT stage. <img width="1909" alt="Pasted Graphic" src="https://github.com/cockroachdb/cockroach/assets/20136951/c75ca5b2-5c19-4f24-b66f-a0e1df381d9c"> Co-authored-by: Xin Hao Zhang <xzhang@cockroachlabs.com>
- Loading branch information
Showing
7 changed files
with
146 additions
and
38 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
Oops, something went wrong.