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

Remove MiqQueue rows containing a class removed in Rails 5. #14418

Merged

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Mar 20, 2017

https://bugzilla.redhat.com/show_bug.cgi?id=1434454

The PostgreSQL::OID::Integer class was removed in:
rails/rails@aafee23

It's possible that old Rails 4.2 versions of objects could have been
serialized in the MiqQueue in the args column and we won't be able to
deserialize them with Rails 5+, so we need to remove these rows.

Related to #14365
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1429747

@jrafanie
Copy link
Member Author

@Fryguy Please review

@@ -0,0 +1,8 @@
class RemoveOidIntegerArgsFromMiqQueue < ActiveRecord::Migration[5.0]
class MiqQueue < ActiveRecord::Base; end
def change
Copy link
Member

Choose a reason for hiding this comment

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

This should be up migration only.

Copy link
Member

@Fryguy Fryguy left a comment

Choose a reason for hiding this comment

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

See above

@Fryguy
Copy link
Member

Fryguy commented Mar 20, 2017

Also fix the rubocop...otherwise everything looks good 👍

@jrafanie
Copy link
Member Author

Thanks, I'll fix this up and create a separate BZ for it.

https://bugzilla.redhat.com/show_bug.cgi?id=1434454

The PostgreSQL::OID::Integer class was removed in:
rails/rails@aafee23

It's possible that old Rails 4.2 versions of objects could have been
serialized in the MiqQueue in the args column and we won't be able to
deserialize them with Rails 5+, so we need to remove these rows.

Related to ManageIQ#14365
Related to https://bugzilla.redhat.com/show_bug.cgi?id=1429747
@jrafanie jrafanie force-pushed the remove_oid_integer_args_from_miq_queue branch from 1569b51 to 9795934 Compare March 21, 2017 14:26
@miq-bot
Copy link
Member

miq-bot commented Mar 21, 2017

Checked commit jrafanie@9795934 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks good. 🍰

@jrafanie
Copy link
Member Author

@Fryguy updated based on your feedback... I also created a different BZ and updated the commit and description. PTAL. Note, this is euwe/no

@Fryguy Fryguy merged commit cd14053 into ManageIQ:master Mar 22, 2017
@Fryguy Fryguy added this to the Sprint 57 Ending Mar 27, 2017 milestone Mar 22, 2017
@jrafanie jrafanie deleted the remove_oid_integer_args_from_miq_queue branch March 24, 2017 21:28
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