Bug 1121805

Summary: Transaction timeouts with InventoryReportSerializer
Product: [Other] RHQ Project Reporter: Elias Ross <genman>
Component: Core ServerAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.12CC: hrupp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Elias Ross 2014-07-21 23:20:16 UTC
Description of problem:

As seen in my logs:

22:53:50,559 ERROR [org.rhq.enterprise.server.discovery.DiscoveryServerServiceImpl] (http-/0.0.0.0:7080-366) Fatal error occurred during merging of inventory report from agent [Agent[id=0,name=app011,address=null,port=0,remote-endpoint=null,last-availability-ping=null,last-availability-report=null]].: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
...
Caused by: javax.transaction.RollbackException: JBAS014585: Transaction 'TransactionImple < ac, BasicAction: 0:ffff11b0d076:-740e8efb:53cd577c:cf7790 status: ActionStatus.ABORTED >' was already rolled back
	at org.jboss.as.ejb3.tx.CMTTxInterceptor.endTransaction(CMTTxInterceptor.java:99) [jboss-as-ejb3-7.4.0.Final-redhat-4.jar:7.4.0.Final-redhat-4]
	... 159 more
22:53:50,573 INFO  [org.rhq.enterprise.server.util.concurrent.InventoryReportSerializer] (http-/0.0.0.0:7080-366) tid=829; agent=app011: releasing write lock after being locked for millis=620820
22:53:50,573 INFO  [org.rhq.enterprise.server.util.concurrent.InventoryReportSerializer] (http-/0.0.0.0:7080-527) tid=990; agent=app011: acquired write lock in millis=80836

What seems to happen is there is a database transaction for 'app011' that hangs, eventually aborts (after 10 minutes), and a secondary transaction that overlaps.

I'll update if I have more information.


Version-Release number of selected component (if applicable): 4.12


How reproducible: Unclear