Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rolling back a bulk insert command doesn't work #28712

Closed
roji opened this issue Aug 15, 2022 · 0 comments · Fixed by #28713
Closed

Rolling back a bulk insert command doesn't work #28712

roji opened this issue Aug 15, 2022 · 0 comments · Fixed by #28713
Assignees
Labels
area-save-changes area-sqlserver closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-bug
Milestone

Comments

@roji
Copy link
Member

roji commented Aug 15, 2022

When a command is added to a batch which goes over a limit (e.g. too many commands, too many parameters), we "roll it back", resetting the batch's state as if that command wasn't added. When adding a bulk-insert command for SQL Server, this isn't done properly: the command is removed from the SQL Server pending commands list, but the base rollback tasks are skipped. As a result, the batch state partially remains as if the command has been successfully added.

@roji roji added this to the 7.0.0 milestone Aug 15, 2022
@roji roji self-assigned this Aug 15, 2022
roji added a commit to roji/efcore that referenced this issue Aug 15, 2022
@roji roji added the closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. label Aug 15, 2022
roji added a commit to roji/efcore that referenced this issue Aug 15, 2022
roji added a commit to roji/efcore that referenced this issue Aug 15, 2022
roji added a commit to roji/efcore that referenced this issue Aug 15, 2022
@ghost ghost closed this as completed in #28713 Aug 15, 2022
ghost pushed a commit that referenced this issue Aug 15, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0, 7.0.0-rc1 Aug 16, 2022
@ajcvickers ajcvickers modified the milestones: 7.0.0-rc1, 7.0.0 Nov 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-save-changes area-sqlserver closed-fixed The issue has been fixed and is/will be included in the release indicated by the issue milestone. customer-reported type-bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants