Skip to content

tpcc: Handle Rows.Err after Rows.Next#201

Merged
coocood merged 2 commits intopingcap:masterfrom
pingyu:handle-rows-err
Jan 13, 2026
Merged

tpcc: Handle Rows.Err after Rows.Next#201
coocood merged 2 commits intopingcap:masterfrom
pingyu:handle-rows-err

Conversation

@pingyu
Copy link
Contributor

@pingyu pingyu commented Jan 13, 2026

Close #200

Changes

  • Fix TPC-C transaction query loops to properly Close() result sets and surface iteration errors via rows.Err() (prevents silently ignored driver errors and reduces risk of leaked resources).
  • Refactor several QueryContext call sites to avoid rows shadowing and to use clearer row variable names (orderRows, amountRows, itemRows, stockRows).
  • Update Docker build stage base image from golang:1.21 to golang:1.25.

Signed-off-by: Ping Yu <yuping@pingcap.com>
Signed-off-by: Ping Yu <yuping@pingcap.com>
@coocood coocood merged commit a9ca481 into pingcap:master Jan 13, 2026
2 checks passed
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.

Unexpected "item (1, 423) not found in stock" error on timeout

2 participants