-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
fix: SqliteJdbcSinkTest close in order #17849
Conversation
This closes apache#17713. Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
This reverts commit 295db3c.
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
The root cause is that we run db.exec("commit;") // in flush
db.exec("commit;") // in close
db.exec("begin;") // in flush so the second call failed with "no transaction is active". The last commit in this patch can be overkill but it's a strong guarantee that we don't run into this situation ( NOTE: Before and after the last commit, all tests pass in about 3 seconds, no regression. |
Signed-off-by: tison <[email protected]>
I think I can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
/pulsarbot rerun-failure-checks |
/pulsarbot rerun-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work!
This closes #17713.
Documentation
doc-required
(Your PR needs to update docs and you will update later)
doc-not-needed
(Please explain why)
doc
(Your PR contains doc changes)
doc-complete
(Docs have been already added)
Matching PR in forked repository
PR in forked repository: tisonkun#3