History | Log In     View a printable version of the current page.  
HQ 4.0 EE Release is Now Available | HQ 3.2.5-EE Maintenance Release is Now Available
Issue Details (XML | Word | Printable)

Key: HHQ-1153
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Jon Travis
Reporter: Ryan Morgan
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hyperic HQ

Metric enabler can fail to enable or reschedule all metrics

Created: 23/Oct/07 02:32 PM   Updated: 24/Oct/07 08:08 AM
Component/s: None
Affects Version/s: 3.1.1
Fix Version/s: 3.2.0, 3.1.4

Verify By: Nipuna Bhayani
Last comment: 56 weeks, 2 days ago
Resolution Date: 23/Oct/07 02:33 PM


 Description  « Hide

It's possible for the MeasurementEnabler to fail to fully enable or re-schedule metrics for all resources on an agent. This is because the bulk of the rescheduling is done inside the listener rather than in a real session and transaction within a session bean.

This can be observed occasionally in the server log with a batch update exception:

007-10-23 15:56:13,113 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> rtm:scheduleMeasurements
2007-10-23 15:56:13,116 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> track:trackRemove
2007-10-23 15:56:13,226 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> rtm:scheduleMeasurements
2007-10-23 15:56:13,299 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> track:trackRemove
2007-10-23 15:56:13,383 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> rtm:scheduleMeasurements
2007-10-23 15:56:13,460 WARN [org.hyperic.hq.bizapp.server.session.AIBossEJBImpl] toggleRuntimeScan called for non-server type=3:34299
2007-10-23 15:56:13,476 INFO [org.hyperic.hq.measurement.server.session.MeasurementEnabler] Rescheduling metric schedule for [3:34299]
2007-10-23 15:56:13,495 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> rtm:scheduleMeasurements
2007-10-23 15:56:13,538 INFO [org.hyperic.hq.agent.client.AgentConnection] 10.100.9.143 -> rtm:scheduleMeasurements
2007-10-23 15:56:13,617 ERROR [org.hibernate.jdbc.AbstractBatcher] Exception executing batch:
org.hibernate.StaleStateException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1
 

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order

Ryan Morgan - 23/Oct/07 02:34 PM

To verify nothing was broken with this commit, test the following:

1) Start a new agent on a new platform, verify all resources are imported and configured for metrics
2) Re-initialize an existing agent by shutting it down, removing the data directory then restarting. Verify all metrics are rescheduled.

Nipuna Bhayani - 24/Oct/07 08:08 AM
Works fine in Release 3.1.3-EE build 493