-
Notifications
You must be signed in to change notification settings - Fork 56
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
Remove Tx from TxManager on rollback #281
Conversation
lock_guard<mutex> l(transaction_lock); | ||
transactions.erase(transaction); |
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.
This is the fix
if (table->relid) { | ||
auto rel = RelationIdGetRelation(table->relid); | ||
auto namespace_oid = RelationGetNamespace(rel); | ||
RelationClose(rel); |
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.
Minor cleanup - move it higher since we were closing it in both branches below
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.
LGTM, but yeah if you can add a test that reproduces this that would be great.
Fixes #279
Also adds a test that removes
DuckDB
singleton and re-creates it: this is when the crash was happening.And fully consume the explain output stream from DuckDB