Red Hat Bugzilla – Bug 1293370
When worker killer is invoked, you get undefined method sort!
Last modified: 2016-06-29 11:22:54 EDT
Description of problem:
When the appliance runs low on memory, the worker killer is invoked. The following error is raised:
[NoMethodError]: undefined method `sort!' for #<MiqAutomateWorker::ActiveRecord_Relation:0x0000000ca46ff8> Method:[rescue in monitor]
/app/models/miq_server/worker_management/monitor.rb:110:in `block in do_system_limit_exceeded'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Fill up the system with worker
2. Wait for memory to run out
3. See error in log
The worker killer should kill some workers to reclaim memory, and log an appropriate error message when it does so.
Fixed in upstream PR https://github.com/ManageIQ/manageiq/pull/5916
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.