Bug 779082 (SOA-1482)

Summary: Negative values shows up in Overall Bytes at the action level
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Jaroslaw Kijanowski <kijanowski>
Component: Monitoring and ManagementAssignee: tcunning
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 CP01, 4.3 CP02   
Target Milestone: ---   
Target Release: 4.3 CP04 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-1482
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
SOA-P 4.3 CP02 CR3 JON-2.3.0-8299 md5sum rhq-jbossesb-plugin-SOA.4.3.0.GA_CP02.jar 0d881ee81fdc9083ca9fc482140d29b1
Last Closed: 2010-09-13 20:57:45 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:
Bug Depends On:    
Bug Blocks: 779234    
Attachments:
Description Flags
Quickstart_helloworld_flood.esb
none
helloworld_flood.zip
none
service-level.png
none
action-level.png
none
Screenshot-2.png none

Description Jaroslaw Kijanowski 2009-09-04 17:44:42 UTC
Date of First Response: 2009-09-04 14:41:01
project_key: SOA

It's not a regression.
It might be related to SOA-944 where some values were measured in integers instead of longs.

I have a quickstart (attached) where I send a lot of messages (470k).
The Overall Bytes metric at the Service level shows 2.1GB (service-level.png)
The Overall Bytes metric at the Action level shows -2021MB (action-level.png)

I'm guessing that the counter at the action level reached its maximum value and started from the beginning with the lowest value.

Comment 1 Jaroslaw Kijanowski 2009-09-04 17:45:02 UTC
Link: Added: This issue is related to SOA-944


Comment 2 Jaroslaw Kijanowski 2009-09-04 17:45:36 UTC
Attachment: Added: Quickstart_helloworld_flood.esb
Attachment: Added: helloworld_flood.zip


Comment 3 Jaroslaw Kijanowski 2009-09-04 17:46:08 UTC
Attachment: Added: service-level.png
Attachment: Added: action-level.png


Comment 4 tcunning 2009-09-04 18:41:01 UTC
What does JMX say (negative/positive/other)?

Comment 5 Jaroslaw Kijanowski 2009-09-05 12:47:47 UTC
JMX displays values bigger than 2^31 properly but AFAIUI this particular metric is not shown in the JMX console but is calculated by the plugin.

The metric that displays negative values is "Overall Bytes" at the Action level. In the plugin xml file this metric is mapped to "overallBytesProcessed". In the source code [1] this metric (a.k.a. OVERALL_BYTES_METRIC_NAME) is a sum of two longs, counterBytesProcessed and counterBytesFailed, but values for these two longs are int values:

bytesProcessed = (Long) attribute.refresh();
counterBytesProcessed = bytesProcessed.intValue();

and

bytesFailed = (Long) attribute.refresh();
counterBytesFailed += bytesFailed.intValue();

[1] http://anonsvn.jboss.org/repos/labs/labs/jbossesb/branches/JBESB_4_4_GA_CP/product/tools/jonplugin/src/main/java/org/jbosson/plugins/jbossesb/ActionComponent.java

Comment 6 Jaroslaw Kijanowski 2009-09-09 07:30:51 UTC
Link: Added: This issue is a dependency of JBESB-2815


Comment 7 Jaroslaw Kijanowski 2009-11-21 08:26:56 UTC
Link: Added: This issue is a dependency of SOA-1627


Comment 8 Len DiMaggio 2010-05-06 03:28:29 UTC
Seems to be solved with SOA-P 4.3 CP04 and CP02 plugin.

Comment 9 Len DiMaggio 2010-05-06 03:28:29 UTC
Attachment: Added: Screenshot-2.png