Bug 1262801 - HotRod Server statistics class is returning different stats in reliance on what method was called
Summary: HotRod Server statistics class is returning different stats in reliance on wh...
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: unspecified
Version: 6.5.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ER1
: 6.6.0
Assignee: Galder Zamarreño
QA Contact: Martin Gencur
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-14 11:56 UTC by pdrobek
Modified: 2023-09-30 08:28 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)
Used test code (2.39 KB, text/plain)
2015-09-14 11:56 UTC, pdrobek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker ISPN-5755 0 Major Resolved HotRod returns local statistics instead of clustered 2016-01-20 12:37:24 UTC

Description pdrobek 2015-09-14 11:56:47 UTC
Created attachment 1073202 [details]
Used test code

Description of problem:
If method RemoteCache.getAll() or RemoteCacheManager.Start() isn't called, server statistics are returning the stats of the same node. Test code in attachament.

Version-Release number of selected component (if applicable):
7.2.3.Final of Infinispan packages

How reproducible:
Always

Steps to Reproduce:
1. Start JDG server in clustered mode
2. Wait a while and Start another JDG server in clustered mode
3. Run tests

Actual results:
Call one:
-------------
Server statistics of Hot Rod Server:
---------------------
Host: localhost
Port: 11222
{currentNumberOfEntries=1000, hits=0, removeHits=0, totalBytesRead=12136, timeSinceStart=15, removeMisses=0, totalNumberOfEntries=489, stores=489, misses=0, retrievals=0, totalBytesWritten=2966}
Server statistics of Hot Rod Server:
---------------------
Host: localhost
Port: 11322
{currentNumberOfEntries=1000, hits=0, removeHits=0, totalBytesRead=12145, timeSinceStart=15, removeMisses=0, totalNumberOfEntries=489, stores=489, misses=0, retrievals=0, totalBytesWritten=3156}

Call two:
-------------
Server statistics of Hot Rod Server:
---------------------
Host: localhost
Port: 11222
{currentNumberOfEntries=1000, hits=0, removeHits=0, totalBytesRead=12154, timeSinceStart=16, removeMisses=0, totalNumberOfEntries=489, stores=489, misses=0, retrievals=0, totalBytesWritten=3346}
Server statistics of Hot Rod Server:
---------------------
Host: localhost
Port: 11322
{currentNumberOfEntries=1000, hits=2000, removeHits=0, totalBytesRead=19596, timeSinceStart=12, removeMisses=0, totalNumberOfEntries=511, stores=511, misses=0, retrievals=2000, totalBytesWritten=17008}
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.893 sec

Expected results:
That call one will look almost the same as call two.

Additional info:
Used client server DataGrid with default configuration.

Comment 2 pdrobek 2015-09-15 08:03:43 UTC
Servers where started from teminal as:
Server 1: 
./bin/clustered.sh -Djboss.node.name=jdg-0 -Djboss.socket.binding.port-offset=0

Server 2: 
./bin/clustered.sh -Djboss.node.name=jdg-1 -Djboss.socket.binding.port-offset=100

Comment 3 Tristan Tarrant 2015-10-26 10:57:33 UTC
We need to add the clustered statistics to the returned stats map and also add a documentation note that the "old" statistics names only refer to the node which handled the request and therefore should be ignored.


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