Skip to content

Stop two sources of dangling transactions#2381

Merged
nickstenning merged 4 commits into
masterfrom
cleanup-transactions
Jul 21, 2015
Merged

Stop two sources of dangling transactions#2381
nickstenning merged 4 commits into
masterfrom
cleanup-transactions

Conversation

@tilgovi
Copy link
Copy Markdown
Contributor

@tilgovi tilgovi commented Jul 20, 2015

Two sources of dangling transactions:

  • WebSocket

Solved by releasing the transaction after checking features,
avoiding a transaction to get the user for every 'more_hits' call,
and the general hygiene of processing messages in a transaction.

  • Notification worker

Process messages in a transaction.

Comment thread h/streamer.py Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pathway previously aborted the transaction, and now doesn't. Reraise?

@tilgovi
Copy link
Copy Markdown
Contributor Author

tilgovi commented Jul 21, 2015

@nickstenning good to go, thanks for the review

tilgovi added 3 commits July 21, 2015 09:12
Two sources of dangling transactions:

- WebSocket

Solved by releasing the transaction after checking features,
avoiding a transaction to get the user for every 'more_hits' call,
and the general hygiene of processing messages in a transaction.

- Notification worker

Process messages in a transaction.
@tilgovi tilgovi force-pushed the cleanup-transactions branch from 1031860 to 560aa5e Compare July 21, 2015 16:13
I will see you again, soon, streamer.py. Soon.
@tilgovi
Copy link
Copy Markdown
Contributor Author

tilgovi commented Jul 21, 2015

There, that should get the tests passing.

@tilgovi
Copy link
Copy Markdown
Contributor Author

tilgovi commented Jul 21, 2015

Should I do anything else here?

nickstenning added a commit that referenced this pull request Jul 21, 2015
Stop two sources of dangling transactions
@nickstenning nickstenning merged commit e0c868b into master Jul 21, 2015
@nickstenning nickstenning deleted the cleanup-transactions branch July 21, 2015 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants