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

Add some error wrapping to sync API, use background context for sync #1363

Merged
merged 2 commits into from Aug 28, 2020

Conversation

neilalexander
Copy link
Contributor

@neilalexander neilalexander commented Aug 28, 2020

This is in the vein hope that it might yield something more useful the next time #1159 or #1348 happen, but I can't seem to force the issue to happen.

This also includes a tweak to the context used for the DB transaction until mattn/go-sqlite3#765 is merged.

@neilalexander neilalexander changed the title Add some error wrapping to sync API Add some error wrapping to sync API, use background context for sync Aug 28, 2020
Copy link
Member

@kegsay kegsay left a comment

Choose a reason for hiding this comment

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

This closes #1348 and #1159 - we knew it was double txn and related to contexts, so it feels like the upstream sqlite3 issue really is the cause here. We can re-open if we encounter it again (otherwise when will we ever close them, how long do we wait?!)

@neilalexander neilalexander merged commit c42c705 into master Aug 28, 2020
@neilalexander neilalexander deleted the neilalexander/leakingtxn branch August 28, 2020 12:28
anandv96 pushed a commit to anandv96/dendrite that referenced this pull request Sep 1, 2020
…atrix-org#1363)

* Add some error wrapping to sync API

* Don't use request context for BeginTx until mattn/go-sqlite3#764 is fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible transaction in transaction error sqlite/http: /sync 500s forever
2 participants