Bug 778468 (SOA-944) - Byte total metrics in ESB ServiceMessageCounter are measured in integer values
Summary: Byte total metrics in ESB ServiceMessageCounter are measured in integer values
Keywords:
Status: CLOSED WORKSFORME
Alias: SOA-944
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: JBossESB, Monitoring and Management
Version: 4.3 CP02
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.3 CP02
Assignee: tcunning
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-15 13:35 UTC by Len DiMaggio
Modified: 2009-09-04 17:45 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
SOA 4.3 CR1
Last Closed: 2009-08-21 02:10:13 UTC
Type: Bug


Attachments (Terms of Use)
Screenshot.png (213.75 KB, image/png)
2008-10-15 13:36 UTC, Len DiMaggio
no flags Details
Screenshot-1.png (163.98 KB, image/png)
2008-10-15 13:40 UTC, Len DiMaggio
no flags Details
fixed.png (129.45 KB, image/png)
2009-08-17 19:44 UTC, Jaroslaw Kijanowski
no flags Details
serviceLevel.png (136.97 KB, image/png)
2009-08-17 20:08 UTC, Jaroslaw Kijanowski
no flags Details
actionLevel.png (142.06 KB, image/png)
2009-08-17 20:08 UTC, Jaroslaw Kijanowski
no flags Details
cantreproduce.png (396.46 KB, image/png)
2009-08-21 02:04 UTC, tcunning
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 778772 0 high CLOSED CCE in agent log - individual actions level metrics not being collected - regression relative to GA 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 779082 0 high CLOSED Negative values shows up in Overall Bytes at the action level 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-944 0 None None None Never

Internal Links: 778772 779082

Description Len DiMaggio 2008-10-15 13:35:56 UTC
Date of First Response: 2008-10-24 03:24:21
project_key: SOA

Platform JIRA for ESB project JIRA:  https://jira.jboss.org/jira/browse/JBESB-2107

Comment 1 Len DiMaggio 2008-10-15 13:36:07 UTC
Link: Added: This issue depends JBESB-2107


Comment 2 Len DiMaggio 2008-10-15 13:36:29 UTC
Screenshot

Comment 3 Len DiMaggio 2008-10-15 13:36:29 UTC
Attachment: Added: Screenshot.png


Comment 4 Len DiMaggio 2008-10-15 13:40:37 UTC
Screen shot fron JON console

Comment 5 Len DiMaggio 2008-10-15 13:40:37 UTC
Attachment: Added: Screenshot-1.png


Comment 6 tcunning 2008-10-24 07:24:21 UTC
Change byte total metrics to long.

Comment 7 Julian Coleman 2009-02-23 15:23:15 UTC
When starting up SOA 4.3.0 CP01 with DB tables created with 4.3.0 GA (using the
default HS DB), I see an exception at start up:

  ERROR [JDBCExceptionReporter] Column count does not match in statement [insert into JMXDATA (id, STATID, SERVER, STATDATE, bytevalue, timevalue, countvalue, textvalue) values (null, ?, ?, ?, ?, ?, ?, ?)]

It looks like we need to:

  1) check the behaviour on supported databases
  2) provide an upgrade script for GA users, if necessary


Comment 8 tcunning 2009-02-24 14:41:46 UTC
Here is the old table structure :

CREATE TABLE JMXDATA (
ID INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,
STATID INTEGER,
SERVER VARCHAR(255),
STATDATE TIMESTAMP,
TIMEVALUE FLOAT,
COUNTVALUE INT,
TEXTVALUE VARCHAR(255),
CONSTRAINT FK_ATTRIBUTE FOREIGN KEY(STATID) REFERENCES JMXATTRIBUTE
);

The change here looks like the addition of the BYTEVALUE column.

Comment 9 Jaroslaw Kijanowski 2009-02-24 17:32:19 UTC
I think this means that together with the patched JON plugin, we need to provide upgrade db-scripts for *JON's backends*, right? AFAIUI this data is not stored in the SOA-P's db.

What about history? Will that all be available with the new plugin?

Comment 10 Jaroslaw Kijanowski 2009-02-25 09:57:55 UTC
Just to clarify, by history I mean historical data.

Comment 11 Julian Coleman 2009-02-26 11:18:55 UTC
Fixed with revision 2691 (4.3 branch of:
  build-tools/builders/eap/resources/management.esb/installed/jbossesbmanagement-service.xml
  build-tools/builders/eap/resources/management.esb/installed/upgrade_database.sql
  build-tools/builders/eap/resources/management.esb/tools/src/main/resources/hsqldb/upgrade_database.sql
  build-tools/builders/eap/resources/management.esb/tools/src/main/resources/jbossesbmanagement-service.xml
  build-tools/builders/eap/resources/management.esb/tools/src/main/resources/mysql/upgrade_database.sql
  build-tools/builders/eap/resources/management.esb/tools/src/main/resources/oracle/upgrade_database.sql
  build-tools/builders/eap/resources/management.esb/tools/src/main/resources/postgresql/upgrade_database.sql

Commit message:
  Add upgrade database scripts and *service.xml files to fix JIRA SOA-944.

and with revision 2693 (4.3 branch) of:
  build-tools/builders/eap/build.xml

Commit message:
  Install upgrade database scripts and *service.xml files to fix JIRA SOA-944.


Comment 12 Len DiMaggio 2009-03-06 02:45:30 UTC
Changed fixed-in version to CP02 - fix will be verified when a new version of JON is available. 

Comment 13 Jaroslaw Kijanowski 2009-03-06 06:21:28 UTC
Looks like we have a new JON version shipped with CR3. So we should be able to test these scripts.

Comment 14 tcunning 2009-03-18 02:33:58 UTC
This was resolved in SOA-1227.

Comment 15 tcunning 2009-03-18 02:34:17 UTC
Link: Added: This issue is related to SOA-1227


Comment 16 Dana Mison 2009-08-03 07:28:43 UTC
added to 4.3.CP02 release notes as resolved:

JBESB-2107 - 

All the byte total metrics in ServiceMessageCounter are now measured using the data type of Long.  

Comment 17 Jaroslaw Kijanowski 2009-08-17 19:44:44 UTC
Attachment: Added: fixed.png


Comment 18 Jaroslaw Kijanowski 2009-08-17 19:45:34 UTC
Verified in CR2 + JON-2.2.0.GA

Comment 19 Jaroslaw Kijanowski 2009-08-17 20:07:40 UTC
It looks good on the service level (serviceLevel.png) but on the action level (actionLevel.png) negative values are displayed for Overall Bytes.
On the service level this value is displayed in GB, on the action level in MB.

Comment 20 Jaroslaw Kijanowski 2009-08-17 20:08:04 UTC
Attachment: Added: serviceLevel.png
Attachment: Added: actionLevel.png


Comment 21 tcunning 2009-08-21 02:04:18 UTC
Attachment: Added: cantreproduce.png


Comment 22 tcunning 2009-08-21 02:08:20 UTC
I can't reproduce this one (see cantreproduce.png).      From what I can see, the plugin is retrieving the correct values for Overall Bytes, I'm not sure what conditions got the values negative in your case (did you stop the monitored server?)    In any case, since the plugin is getting the right value, I think this is probably a JON/RHQ bug and should be filed over there with steps to reproduce.

Comment 23 Jaroslaw Kijanowski 2009-09-04 17:45:02 UTC
Link: Added: This issue related SOA-1482



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