Skip to content

Conversation

@rafiss
Copy link
Collaborator

@rafiss rafiss commented May 22, 2023

fixes #102494

Release note (bug fix): Fixed a panic that could occur while a COPY statement is logged for telemetry purposes.

@rafiss rafiss added the backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only label May 22, 2023
@rafiss rafiss requested a review from otan May 22, 2023 20:30
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@rafiss rafiss force-pushed the fix-copy-log-panic branch from 7a63a3a to 3341b5a Compare May 22, 2023 20:32
initPlanner: func(ctx context.Context, p *planner) {
ex.initPlanner(ctx, p)
},
resetPlanner: func(ctx context.Context, p *planner, txn *kv.Txn, txnTS time.Time, stmtTS time.Time) {
Copy link
Contributor

@otan otan May 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we delete resetPlanner from the copyTxnOpt struct too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops my fix is invalid. i forgot about the mode where we batch copies and call this resetPlanner in between each batch.

@rafiss rafiss force-pushed the fix-copy-log-panic branch from 3341b5a to 7c70f57 Compare May 23, 2023 20:29
@rafiss rafiss requested a review from a team as a code owner May 23, 2023 20:29
@rafiss rafiss requested review from rhu713 and removed request for a team May 23, 2023 20:29
@rafiss rafiss force-pushed the fix-copy-log-panic branch from 7c70f57 to 542028c Compare May 24, 2023 02:57
Release note (bug fix): Fixed a panic that could occur while a
COPY statement is logged for telemetry purposes.
@rafiss rafiss force-pushed the fix-copy-log-panic branch from 542028c to 307b038 Compare May 24, 2023 02:59
@rafiss rafiss requested a review from otan May 24, 2023 02:59
@rafiss
Copy link
Collaborator Author

rafiss commented May 24, 2023

went with a more basic fix. please take another look!

@rafiss
Copy link
Collaborator Author

rafiss commented May 24, 2023

tftr!

bors r+

@craig
Copy link
Contributor

craig bot commented May 24, 2023

This PR was included in a batch that was canceled, it will be automatically retried

@craig
Copy link
Contributor

craig bot commented May 24, 2023

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-23.1.x PAST MAINTENANCE SUPPORT: 23.1 patch releases via ER request only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uploading a User File Crashes v23.1.0.beta.3 Sql Servers

3 participants