Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1140652

Summary: Race condition in QueryCache initialization
Product: [JBoss] JBoss Data Grid 6 Reporter: Adrian Nistor <anistor>
Component: InfinispanAssignee: Tristan Tarrant <ttarrant>
Status: CLOSED CURRENTRELEASE QA Contact: Martin Gencur <mgencur>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.1, 6.4.0CC: jdg-bugs, rvansa
Target Milestone: CR2   
Target Release: 6.3.1, 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-26 14:05:23 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:
Embargoed:

Description Adrian Nistor 2014-09-11 12:44:28 UTC
07:48:54,189 DEBUG [org.infinispan.interceptors.InterceptorChain] (Stressor-2) Interceptor chain size: 6
07:48:54,189 DEBUG [org.infinispan.interceptors.InterceptorChain] (Stressor-2) Interceptor chain is: 
        >> org.infinispan.interceptors.InvocationContextInterceptor
        >> org.infinispan.interceptors.CacheMgmtInterceptor
        >> org.infinispan.interceptors.NotificationInterceptor
        >> org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor
        >> org.infinispan.interceptors.EntryWrappingInterceptor
        >> org.infinispan.interceptors.CallInterceptor
07:48:54,206 DEBUG [org.infinispan.jmx.JmxUtil] (Stressor-2) Object name org.infinispan:type=Cache,name="__query_cache__(local)",manager="DefaultCacheManager",component=Cache already registered
07:48:54,207 DEBUG [org.infinispan.CacheImpl] (Stressor-2) Started cache __query_cache__ on edg-perf10-33989
07:48:54,208 ERROR [org.radargun.stages.test.Stressor] (Stressor-8) Unexpected error in stressor!
java.lang.NullPointerException
        at org.infinispan.query.dsl.embedded.impl.QueryCache.get(QueryCache.java:58)
        at org.infinispan.query.dsl.embedded.impl.EmbeddedLuceneQueryBuilder.build(EmbeddedLuceneQueryBuilder.java:50)
        at org.infinispan.query.dsl.embedded.impl.EmbeddedLuceneQueryBuilder.build(EmbeddedLuceneQueryBuilder.java:20)
        at org.radargun.service.AbstractInfinispanQueryable$QueryBuilderImpl.build(AbstractInfinispanQueryable.java:169)
        at org.radargun.stages.cache.test.QueryStage$Logic.run(QueryStage.java:153)
        at org.radargun.stages.test.Stressor.runInternal(Stressor.java:75)
        at org.radargun.stages.test.Stressor.run(Stressor.java:53)

Comment 2 Adrian Nistor 2014-09-11 13:46:07 UTC
PRs for both jdg-6.3.x and jdg-6.4.x available:

https://github.com/infinispan/jdg/pull/247

https://github.com/infinispan/jdg/pull/248

Comment 3 Adrian Nistor 2014-09-11 13:46:52 UTC
Integrated in both jdg-6.3.x and jdg-6.4.x.