Bug 535160 (RHQ-1885)

Summary: Infinite repeating discover (part 2)
Product: [Other] RHQ Project Reporter: Greg Hinkle <ghinkle>
Component: Plugin ContainerAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: low    
Version: 1.2CC: ccrouch, jshaughn
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
URL: http://jira.rhq-project.org/browse/RHQ-1885
Whiteboard:
Fixed In Version: 1.4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-05 18:07:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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