Bug 1438935
| Summary: | Excessive log lines for "Initializing DRb Connection to MiqServer with ID" | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Joe Rafaniello <jrafanie> | |
| Component: | Appliance | Assignee: | Joe Rafaniello <jrafanie> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | luke couzens <lcouzens> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 5.7.0 | CC: | abellott, jhardy, obarenbo, simaishi | |
| Target Milestone: | GA | Keywords: | TestOnly | |
| Target Release: | 5.9.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | black | |||
| Fixed In Version: | 5.9.0.1 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1439303 1439308 (view as bug list) | Environment: | ||
| Last Closed: | 2018-03-06 15:17:16 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: | 1439303, 1439308 | |||
|
Description
Joe Rafaniello
2017-04-04 19:34:31 UTC
Note, https://github.com/ManageIQ/manageiq/pull/14365 was backported to euwe, so we should clone to 5.7. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/a9726db194068853599ee173334e5920b7cfe5bd commit a9726db194068853599ee173334e5920b7cfe5bd Author: Joe Rafaniello <jrafanie> AuthorDate: Tue Apr 4 14:59:57 2017 -0400 Commit: Joe Rafaniello <jrafanie> CommitDate: Tue Apr 4 16:08:04 2017 -0400 Make worker_monitor_drb act like a reader again! https://bugzilla.redhat.com/show_bug.cgi?id=1438935 For testing in e21d1b9ca, @worker_monitor_drb was changed to use the method. Unfortunately, this method isn't a reader, so it would create a new drb client each time it was called. It doesn't make sense for this method to make a new drb client each time, so we can cache this client on first access so it functions like a attr_reader now. We can then remove some memoization/caching that occurs in heartbeat since the getter method handles that for us. app/models/miq_worker/runner.rb | 29 +++++++++++++++-------------- spec/models/miq_worker/runner_spec.rb | 8 ++++++++ 2 files changed, 23 insertions(+), 14 deletions(-) Making this a blocker since it floods the logs. Additionally, it creates a new DRb client each time we process a queue message. Ugh, wrong bug, removing blocker *** Bug 1439262 has been marked as a duplicate of this bug. *** Verified in 5.9.0.3 |