Skip to content

Add debug logging for MULTI_SHARD_AUTOCOMMIT transaction path#832

Draft
tanjinx wants to merge 1 commit intoslack-22.0from
tanjin-debug-autocommit
Draft

Add debug logging for MULTI_SHARD_AUTOCOMMIT transaction path#832
tanjinx wants to merge 1 commit intoslack-22.0from
tanjin-debug-autocommit

Conversation

@tanjinx
Copy link
Copy Markdown

@tanjinx tanjinx commented Apr 3, 2026

Adds log lines at three decision points to diagnose whether vtgate uses autocommit or explicit BEGIN for multi-shard DMLs:

  • vtgate execMultiShard: logs autocommit decision inputs and result
  • vtgate actionInfo: logs per-shard transaction/begin decision
  • vttablet Execute vs BeginExecute: confirms which RPC path is taken

Description

Related Issue(s)

Checklist

  • "Backport to:" labels have been added if this change should be back-ported to release branches
  • If this change is to be back-ported to previous releases, a justification is included in the PR description
  • Tests were added or are not required
  • Did the new or modified tests pass consistently locally and on CI?
  • Documentation was added or is not required

Deployment Notes

AI Disclosure

Adds log lines at three decision points to diagnose whether vtgate
uses autocommit or explicit BEGIN for multi-shard DMLs:

- vtgate execMultiShard: logs autocommit decision inputs and result
- vtgate actionInfo: logs per-shard transaction/begin decision
- vttablet Execute vs BeginExecute: confirms which RPC path is taken

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Signed-off-by: Tanjin Xu <tanjin.xu@slack-corp.com>
@github-actions github-actions bot added this to the v22.0.3 milestone Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant