Skip to content

Clean up evr_t remnants#4467

Open
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:evr-t-fix-3
Open

Clean up evr_t remnants#4467
dralley wants to merge 1 commit into
pulp:mainfrom
dralley:evr-t-fix-3

Conversation

@dralley
Copy link
Copy Markdown
Contributor

@dralley dralley commented May 21, 2026

Cannot merge until next release

@github-actions github-actions Bot added the multi-commit Added when a PR consists of more than one commit label May 22, 2026
@github-actions github-actions Bot removed the multi-commit Added when a PR consists of more than one commit label May 22, 2026
Comment thread pulp_rpm/app/migrations/0073_evr_cleanup.py
Assisted-By: claude-opus-4.6
@dralley dralley marked this pull request as ready for review June 3, 2026 19:29
@dralley dralley changed the title [do not merge] Clean up evr_t remnants Clean up evr_t remnants Jun 3, 2026
cleanup_sql = """
-- Drop old triggers (will be recreated below)
DROP TRIGGER IF EXISTS pulp_evr_insert_trigger ON rpm_package;
DROP TRIGGER IF EXISTS pulp_evr_update_trigger ON rpm_package;
Copy link
Copy Markdown
Contributor Author

@dralley dralley Jun 3, 2026

Choose a reason for hiding this comment

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

Is there a race condition window between here and line 40 that we need to be concerned about when it comes to ZDT upgrades?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It runs in a migration. So we could add a table lock be be extra sure.

Probably "SHARE ROW EXCLUSIVE" is a good choice, since it will be acquired by the "CREATE TRIGGER" commands anyway.

To prevent races between different pulp_rpm releases, we use the pulpcore.migrations.RequireVersion.

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.

2 participants