Project

General

Profile

Refactor #33012

Refactor DockerTag cleanup in 20200402130013_add_repsository_docker_meta_tag_f_key

Added by James Jeffers 10 months ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Branch:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

Description of problem:

During 6.7 > 6.8 upgrade, foreman-rake db:migrate run 20200402130013_add_repsoitory_docker_meta_tag_f_key which comes from katello.
The migrations script calls:

Katello::RepositoryDockerTag.where.not(:docker_tag_id => Katello::DockerTag.select(:id)).delete_all

and it was hanging forever.

Associated revisions

Revision 40ae9eb5 (diff)
Added by James Jeffers 10 months ago

Fixes #33012 - refactors deletion of orphaned entries in docker tag join table

Fixes #33012 - updates query based on suggestions from iballou

History

#1 Updated by The Foreman Bot 10 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/9464 added

#2 Updated by James Jeffers 10 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 4.2.0

#3 Updated by The Foreman Bot 10 months ago

  • Fixed in Releases Katello 4.3.0 added

#4 Updated by James Jeffers 10 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF