Bug 1566198
Summary: | DRb 'close' error for closed connection | |||
---|---|---|---|---|
Product: | Red Hat CloudForms Management Engine | Reporter: | Tina Fitzgerald <tfitzger> | |
Component: | Appliance | Assignee: | Adam Grare <agrare> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Dmitry Misharov <dmisharo> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 5.8.0 | CC: | abellott, cpelland, dmisharo, obarenbo, simaishi | |
Target Milestone: | GA | Keywords: | TestOnly, ZStream | |
Target Release: | 5.10.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1566255 1566256 (view as bug list) | Environment: | ||
Last Closed: | 2019-02-11 14:01:01 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1566255, 1566256 |
Description
Tina Fitzgerald
2018-04-11 18:22:48 UTC
Adam created a PR to resolve this issue: https://github.com/ManageIQ/manageiq/pull/17267 New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/76309b91e41725be72c5abadb19c0731b07733f7 commit 76309b91e41725be72c5abadb19c0731b07733f7 Author: Adam Grare <agrare> AuthorDate: Mon Apr 9 14:37:53 2018 -0400 Commit: Adam Grare <agrare> CommitDate: Mon Apr 9 14:37:53 2018 -0400 Set DRb conn pool to [] after closing connections After forking and closing open DRb pooled connections set the pool to [] to prevent other calls calling `conn.close` on already closed connection. This prevents the following: ``` [NoMethodError]: undefined method `close' for nil:NilClass Did you mean? clone /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1258:in `close' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1237:in `block in open' /opt/rh/rh-ruby23/root/usr/share/ruby/sync.rb:234:in `block in sync_synchronize' /opt/rh/rh-ruby23/root/usr/share/ruby/sync.rb:231:in `handle_interrupt' /opt/rh/rh-ruby23/root/usr/share/ruby/sync.rb:231:in `sync_synchronize' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1235:in `open' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1141:in `block in method_missing' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1160:in `with_friend' /opt/rh/rh-ruby23/root/usr/share/ruby/drb/drb.rb:1140:in `method_missing' lib/gems/pending/VMwareWebService/MiqVimBroker.rb:419:in `getMiqVim' ``` https://bugzilla.redhat.com/show_bug.cgi?id=1562401 app/models/miq_worker.rb | 1 + 1 file changed, 1 insertion(+) Verified in 5.10.0.1.20180619163011_900fdc4. |