Bug 1293374 - When worker killer is invoked, you get undefined method sort!
When worker killer is invoked, you get undefined method sort!
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Appliance (Show other bugs)
Unspecified Unspecified
unspecified Severity high
: GA
: 5.5.2
Assigned To: Jason Frey
Milan Falešník
: ZStream
Depends On: 1293370
  Show dependency treegraph
Reported: 2015-12-21 10:17 EST by Chris Pelland
Modified: 2016-02-10 10:29 EST (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1293370
Last Closed: 2016-02-10 10:29:53 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0159 normal SHIPPED_LIVE CFME 5.5.2 bug fixes and enhancement update 2016-02-10 15:19:02 EST

  None (edit)
Comment 2 CFME Bot 2016-01-11 17:32:24 EST
New commit detected on cfme/5.5.z:

commit e0890cc2bf3f9a977ebbb1f230dd9c2de3aa5556
Merge: 43e8378 a2a8c9b
Author:     Oleg Barenboim <obarenbo@redhat.com>
AuthorDate: Mon Jan 11 17:05:28 2016 -0500
Commit:     Oleg Barenboim <obarenbo@redhat.com>
CommitDate: Mon Jan 11 17:05:28 2016 -0500

    Merge branch 'fix_system_limit_killer-ds' into '5.5.z'
    Fix issue where sort! was called on an ActiveRecord::Relation.
    The MiqServer#do_system_limit_exceeded method was calling sort! on an
    ActiveRecord::Relation.  The specs were added to verify, but then it
    was also revealed that the sorting method was not sufficient anyway.
    This fix removes the sort! and also fixes the sorting logic.
    This issue was missed because it didn't have specs, but also because it
    is rarely called, only happening when workers need to be killed due to
    low system resources.
    This was a clean cherry-pick from Jason's PR https://github.com/ManageIQ/manageiq/pull/5916
    See merge request !700

 app/models/miq_server/worker_management/monitor.rb |  7 ++----
 spec/factories/miq_worker.rb                       |  5 +++-
 spec/models/miq_server/worker_monitor_spec.rb      | 27 +++++++++++++++++++++-
 3 files changed, 32 insertions(+), 7 deletions(-)
Comment 5 Milan Falešník 2016-01-21 12:07:36 EST
Ok, it appears to be working on
Comment 6 errata-xmlrpc 2016-02-10 10:29:53 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.