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

migrate: detach context from parent context cancelation #237

Open
mmatczuk opened this issue Jul 13, 2022 · 1 comment
Open

migrate: detach context from parent context cancelation #237

mmatczuk opened this issue Jul 13, 2022 · 1 comment
Assignees
Labels

Comments

@mmatczuk
Copy link
Contributor

Migrate uses Query with Context 1 2.

The problem is that the context may be canceled when migration statement is sent but before it's recorded in gocqlx migration table.

To solve this I suggest we do use xcontext to detach from the context lifecycle and manually check if the context has been canceled before processing next statement.

@mmatczuk mmatczuk added the bug label Jul 13, 2022
@mmatczuk mmatczuk self-assigned this Jul 13, 2022
@mmatczuk
Copy link
Contributor Author

cc @karol-kokoszka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant