Bug 1024914

Summary: JMX statistics for Queries partially doesn't work
Product: [JBoss] JBoss Data Grid 6 Reporter: Martin Gencur <mgencur>
Component: unspecifiedAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact: Martin Gencur <mgencur>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jdg-bugs, vjuranek
Target Milestone: ER5   
Target Release: 6.2.0   
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:
Bug Depends On:    
Bug Blocks: 1017190    

Description Martin Gencur 2013-10-30 15:06:30 UTC

Comment 2 JBoss JIRA Server 2013-11-25 16:22:27 UTC
Adrian Nistor <anistor> made a comment on jira ISPN-3335

This seems to be caused by a bug in the way MutableSearchFactory of Hibernate Search is reconfigured when new indexable classes are found in cache. A new copy of the factory is created and all configs are copied from the previous. The statistics object is not (including the enable statistics flag) - this was overlooked maybe. This can be immediately worked around in Infinispan by reimplementing the query statistics mbean to not rely on it being copied during search factory reconfiguration, as the original one does. But this is a messy workaround, so I'll file an issue on Hibernate Search and see when can they provide a proper fix.

Comment 3 JBoss JIRA Server 2013-11-25 16:22:35 UTC
Adrian Nistor <anistor> updated the status of jira ISPN-3335 to Coding In Progress

Comment 4 JBoss JIRA Server 2013-12-02 12:58:58 UTC
Adrian Nistor <anistor> made a comment on jira ISPN-3335

Created an issue on Hibernate Search: https://hibernate.atlassian.net/browse/HSEARCH-1461

For now we'll do our own workaround until Hibernate Search fixes it.

Comment 5 JBoss JIRA Server 2013-12-02 18:20:59 UTC
Adrian Nistor <anistor> made a comment on jira ISPN-3335

Added ISPN-3782 to track a proper fix later.

Comment 6 JBoss JIRA Server 2013-12-02 22:45:18 UTC
Adrian Nistor <anistor> made a comment on jira ISPN-3335

Integrated in master

Comment 7 Vojtech Juranek 2013-12-06 12:37:03 UTC
Verified with JDG_6.2.0.ER5