[infinispan-issues] [JBoss JIRA] (ISPN-11014) Query returns wrong "total_count"
Gustavo Fernandes (Jira)
issues at jboss.org
Mon Dec 2 10:52:00 EST 2019
[ https://issues.jboss.org/browse/ISPN-11014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819813#comment-13819813 ]
Gustavo Fernandes edited comment on ISPN-11014 at 12/2/19 10:51 AM:
--------------------------------------------------------------------
Your query is selecting all entities of type {{io.enmasse.iot.registry.infinispan.data.DeviceInformation}} I assume this is the only entity type present in the cache? Could you also do a
{code:bash}
curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?actions=size'
{code}
to compare the index result size with the actual data in the cache?
was (Author: gustavonalle):
Your query is selecting all entities of type {{io.enmasse.iot.registry.infinispan.data.DeviceInformation}} I assume this is the only entity type present in the cache? Could you also do a
{code:bash}
curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?actions=size'
{code}
> Query returns wrong "total_count"
> ---------------------------------
>
> Key: ISPN-11014
> URL: https://issues.jboss.org/browse/ISPN-11014
> Project: Infinispan
> Issue Type: Bug
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Assignee: Gustavo Fernandes
> Priority: Major
> Attachments: infinispan.xml
>
>
> Doing a query returns a wrong "total_results" value:
> {code:java}
> oc -n enmasse-infra rsh infinispan-0 curl 'http://app:test12@infinispan-0:11222/rest/v2/caches/devices?action=search&query=from+io.enmasse.iot.registry.infinispan.data.DeviceInformation+d&max_results=1'
> {
> "total_results" : 9,
> "hits" : [ ]
> }
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list