Bug 535160 (RHQ-1885) - Infinite repeating discover (part 2)
Summary: Infinite repeating discover (part 2)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: RHQ-1885
Product: RHQ Project
Classification: Other
Component: Plugin Container
Version: 1.2
Hardware: All
OS: All
low
medium
Target Milestone: ---
: ---
Assignee: RHQ Project Maintainer
QA Contact: Mike Foley
URL: http://jira.rhq-project.org/browse/RH...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-31 05:41 UTC by Greg Hinkle
Modified: 2014-05-05 18:07 UTC (History)
2 users (show)

Fixed In Version: 1.4
Clone Of:
Environment:
Last Closed: 2014-05-05 18:07:14 UTC
Embargoed:


Attachments (Terms of Use)

Description Greg Hinkle 2009-03-31 05:41:00 UTC
Found a case where every time a service level scan was run it would cause a repeating scan to run because it thought one of the resources had been "modified". In point of fact, it seems that somehow I got two resources of type "filesystem" in with the same resourceKey (i.e. a duplicate resource). The outcome is that InventoryManager:1740 thinks that resource has been modified because its comparing the id of the first to the id of the duplicate.

Perhaps a more bullet proof solution is to have a limit on the # of recursive calls to discovery reports so that they won't go for ever if inventory gets into somewhat messed up places.

I've marked this as a minor as I don't know of anyone else who has gotten their inventory into this messed up state... likely pretty rare. And a workaround is to delete one of the resources.

Comment 1 Joseph Marques 2009-04-28 07:06:57 UTC
greg, can you try and re-run this scenario and see if it still happens for you.  as part of the perf tuning we did for 1.2 release, the synchronization code between agents and server was relaxed.  it was determined that we were notifying the agent that a resource had changed TOO often, which i have a strong feeling contributed to this infinite repeating discovery.  if i'm right, you should not be able to reproduce this anymore.

Comment 2 Charles Crouch 2009-07-17 18:38:24 UTC
Look at RHQ-2057 for a similar issue of duplicated resources in the agent inv.

Comment 3 Red Hat Bugzilla 2009-11-10 20:48:46 UTC
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1885
This bug is related to RHQ-2057



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