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

[20.09] Drop trigger and update time queries #10821

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Nov 27, 2020

I don't think we currently filter on HDA or HDCA update_time in the UI, so this should work around the observed deadlocks, at the cost of having to re-implement a replacement on 21.01 when we'll merge #8441.

@mvdbeek mvdbeek mentioned this pull request Nov 27, 2020
Copy link
Member

@jmchilton jmchilton left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, I was so worried about this and put so much effort into trying to cause these issues and really just let the project down by failing to produce the deadlocks. I'm really sorry for breaking this and really appreciate you for cleaning it up.

@mvdbeek mvdbeek force-pushed the drop_trigger_and_update_time_queries branch from 8d44927 to 22a2d7c Compare December 1, 2020 09:07
I don't think we currently filter on HDA or HDCA update_time in the UI,
so this should work around the observed deadlocks, at the cost of having
to re-implement a replacement on 21.01 when we'll merge galaxyproject#8441.
@mvdbeek mvdbeek force-pushed the drop_trigger_and_update_time_queries branch from 22a2d7c to 33883fe Compare December 1, 2020 09:07
@mvdbeek
Copy link
Member Author

mvdbeek commented Dec 1, 2020

I've updated the PR so that we call drop_timestamp_trigger outside of a migration and removed everything that isn't necessary ... since I think it's probably a good idea to keep migrations for updates between releases.

@mvdbeek mvdbeek marked this pull request as ready for review December 1, 2020 09:15
@jmchilton jmchilton merged commit 7f2fe6a into galaxyproject:release_20.09 Dec 11, 2020
@nsoranzo nsoranzo deleted the drop_trigger_and_update_time_queries branch December 11, 2020 15:24
@nsoranzo
Copy link
Member

@mvdbeek Can I merge this forward as it is?

@mvdbeek
Copy link
Member Author

mvdbeek commented Dec 12, 2020

Yes, but I do think we should probably make that a migration.

@jmchilton jmchilton added this to the 20.09 milestone Feb 16, 2021
nsoranzo added a commit to nsoranzo/galaxy that referenced this pull request Apr 14, 2021
Partially revert commit 33883fe .

Also:
- Update `update_time` on target (i.e. `history`) table AFTER HDA/HDCA
  insert/update/delete
- Use f-strings instead of templates
- Use `CURRENT_TIMESTAMP` also in PostgreSQL (it's equivalent but standard
  SQL)
- Code cleanups
nsoranzo added a commit to nsoranzo/galaxy that referenced this pull request Apr 15, 2021
Partially revert commit 33883fe .

Also:
- Update `update_time` on target (i.e. `history`) table AFTER HDA/HDCA
  insert/update/delete
- Use f-strings instead of templates
- Use `CURRENT_TIMESTAMP` also in PostgreSQL (it's equivalent but standard
  SQL)
- Code cleanups
mvdbeek added a commit that referenced this pull request Apr 16, 2021
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.

3 participants