[infinispan-issues] [JBoss JIRA] (ISPN-7837) ClusteredQuery throws NPE if any local index is empty

Adrian Nistor (JIRA) issues at jboss.org
Mon May 22 07:00:00 EDT 2017


     [ https://issues.jboss.org/browse/ISPN-7837?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Nistor updated ISPN-7837:
--------------------------------
           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 9.1.0.Final
                   9.1.0.Alpha1
       Resolution: Done


> ClusteredQuery throws NPE if any local index is empty
> -----------------------------------------------------
>
>                 Key: ISPN-7837
>                 URL: https://issues.jboss.org/browse/ISPN-7837
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Embedded Querying
>    Affects Versions: 9.0.0.Final
>            Reporter: Gustavo Fernandes
>            Assignee: Gustavo Fernandes
>             Fix For: 9.1.0.Final, 9.1.0.Alpha1
>
>
> The ClusteredQuery API expects that all local indexes are populated with documents. With the setting Index.LOCAL, it's possible to index all documents in a single node (by only executing puts in this node), leaving all the other nodes empty. Exception thrown:
> {noformat}
> Caused by: java.lang.NullPointerException
> 	at org.infinispan.query.clustered.commandworkers.CQCreateEagerQuery.collectKeys(CQCreateEagerQuery.java:37)
> 	at org.infinispan.query.clustered.commandworkers.CQCreateEagerQuery.perform(CQCreateEagerQuery.java:25)
> 	at org.infinispan.query.clustered.ClusteredQueryCommand.perform(ClusteredQueryCommand.java:114)
> 	at org.infinispan.query.clustered.ClusteredQueryCommand.invokeAsync(ClusteredQueryCommand.java:109)
> 	at org.infinispan.remoting.inboundhandler.BasePerCacheInboundInvocationHandler.invokeCommand(BasePerCacheInboundInvocationHandler.java:101)
> 	at org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.invoke(BaseBlockingRunnable.java:99)
> 	at org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.runAsync(BaseBlockingRunnable.java:71)
> 	at org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.run(BaseBlockingRunnable.java:40)
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list