[JBoss JIRA] (ISPN-11012) Remote query with Ickle returns null in list
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-11012?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes edited comment on ISPN-11012 at 12/2/19 5:50 AM:
-------------------------------------------------------------------
Certainly, documentation is there, but also it should address it at runtime https://issues.jboss.org/browse/ISPN-11018
was (Author: gustavonalle):
Certainly, this will be addressed on https://issues.jboss.org/browse/ISPN-11018
> Remote query with Ickle returns null in list
> --------------------------------------------
>
> Key: ISPN-11012
> URL: https://issues.jboss.org/browse/ISPN-11012
> Project: Infinispan
> Issue Type: Task
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Priority: Major
> Attachments: infinispan.xml
>
>
> Doing a query with Ickle:
> {code:java}
> var query = Search
> .getQueryFactory(devicesCache)
> .create(
> "from io.enmasse.iot.registry.infinispan.data.DeviceInformation d where d.tenantId=:tenantId",
> IndexedQueryMode.BROADCAST)
> .maxResults(config.getDeletionChunkSize())
> .setParameter("tenantId", tenantId);
> var list = query.list();
> {code}
> sometimes returns {{null}} entries in the result list:
> {code:java}
> 08:41:10.201 [main] DEBUG i.e.i.t.c.InfinispanTenantCleaner - List: [null, null, null, null, null, null, null, null, null, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-lghfn222, version=23c01c7a-40dd-40ca-a703-ba37e0f9ae1d, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-lghfnauth-222, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"YL83poc4t6wVqJm3zjcUpGI9GUVMi3u5uyK/OSdlepc=","salt":"+DXyglWxFg4="}]}]}, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-w7lsv262, version=2cf8b8b0-a207-45ea-b0bc-5403c67f64b5, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-w7lsvauth-262, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"vdO2o/73VTXxyCbaMxBn5Y
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (ISPN-11012) Remote query with Ickle returns null in list
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-11012?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes commented on ISPN-11012:
------------------------------------------
Certainly, this will be addressed on https://issues.jboss.org/browse/ISPN-11018
> Remote query with Ickle returns null in list
> --------------------------------------------
>
> Key: ISPN-11012
> URL: https://issues.jboss.org/browse/ISPN-11012
> Project: Infinispan
> Issue Type: Task
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Priority: Major
> Attachments: infinispan.xml
>
>
> Doing a query with Ickle:
> {code:java}
> var query = Search
> .getQueryFactory(devicesCache)
> .create(
> "from io.enmasse.iot.registry.infinispan.data.DeviceInformation d where d.tenantId=:tenantId",
> IndexedQueryMode.BROADCAST)
> .maxResults(config.getDeletionChunkSize())
> .setParameter("tenantId", tenantId);
> var list = query.list();
> {code}
> sometimes returns {{null}} entries in the result list:
> {code:java}
> 08:41:10.201 [main] DEBUG i.e.i.t.c.InfinispanTenantCleaner - List: [null, null, null, null, null, null, null, null, null, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-lghfn222, version=23c01c7a-40dd-40ca-a703-ba37e0f9ae1d, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-lghfnauth-222, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"YL83poc4t6wVqJm3zjcUpGI9GUVMi3u5uyK/OSdlepc=","salt":"+DXyglWxFg4="}]}]}, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-w7lsv262, version=2cf8b8b0-a207-45ea-b0bc-5403c67f64b5, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-w7lsvauth-262, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"vdO2o/73VTXxyCbaMxBn5Y
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (ISPN-11012) Remote query with Ickle returns null in list
by Jens Reimann (Jira)
[ https://issues.jboss.org/browse/ISPN-11012?page=com.atlassian.jira.plugin... ]
Jens Reimann commented on ISPN-11012:
-------------------------------------
Agreed. However I think it would be worth documenting when you can use which mode.
> Remote query with Ickle returns null in list
> --------------------------------------------
>
> Key: ISPN-11012
> URL: https://issues.jboss.org/browse/ISPN-11012
> Project: Infinispan
> Issue Type: Task
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Priority: Major
> Attachments: infinispan.xml
>
>
> Doing a query with Ickle:
> {code:java}
> var query = Search
> .getQueryFactory(devicesCache)
> .create(
> "from io.enmasse.iot.registry.infinispan.data.DeviceInformation d where d.tenantId=:tenantId",
> IndexedQueryMode.BROADCAST)
> .maxResults(config.getDeletionChunkSize())
> .setParameter("tenantId", tenantId);
> var list = query.list();
> {code}
> sometimes returns {{null}} entries in the result list:
> {code:java}
> 08:41:10.201 [main] DEBUG i.e.i.t.c.InfinispanTenantCleaner - List: [null, null, null, null, null, null, null, null, null, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-lghfn222, version=23c01c7a-40dd-40ca-a703-ba37e0f9ae1d, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-lghfnauth-222, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"YL83poc4t6wVqJm3zjcUpGI9GUVMi3u5uyK/OSdlepc=","salt":"+DXyglWxFg4="}]}]}, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-w7lsv262, version=2cf8b8b0-a207-45ea-b0bc-5403c67f64b5, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-w7lsvauth-262, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"vdO2o/73VTXxyCbaMxBn5Y
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months
[JBoss JIRA] (ISPN-11012) Remote query with Ickle returns null in list
by Gustavo Fernandes (Jira)
[ https://issues.jboss.org/browse/ISPN-11012?page=com.atlassian.jira.plugin... ]
Gustavo Fernandes edited comment on ISPN-11012 at 12/2/19 5:45 AM:
-------------------------------------------------------------------
Ok, so this is not a bug since BROADCAST + InfinispanIndexManager can't mix. Let's move into the other JIRA
was (Author: gustavonalle):
Ok, so this is not a bug since BROADCAST + InfinisopanIndexManager can't mix. Let's move into the other JIRA
> Remote query with Ickle returns null in list
> --------------------------------------------
>
> Key: ISPN-11012
> URL: https://issues.jboss.org/browse/ISPN-11012
> Project: Infinispan
> Issue Type: Task
> Components: Remote Querying
> Affects Versions: 10.0.1.Final
> Reporter: Jens Reimann
> Priority: Major
> Attachments: infinispan.xml
>
>
> Doing a query with Ickle:
> {code:java}
> var query = Search
> .getQueryFactory(devicesCache)
> .create(
> "from io.enmasse.iot.registry.infinispan.data.DeviceInformation d where d.tenantId=:tenantId",
> IndexedQueryMode.BROADCAST)
> .maxResults(config.getDeletionChunkSize())
> .setParameter("tenantId", tenantId);
> var list = query.list();
> {code}
> sometimes returns {{null}} entries in the result list:
> {code:java}
> 08:41:10.201 [main] DEBUG i.e.i.t.c.InfinispanTenantCleaner - List: [null, null, null, null, null, null, null, null, null, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-lghfn222, version=23c01c7a-40dd-40ca-a703-ba37e0f9ae1d, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-lghfnauth-222, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"YL83poc4t6wVqJm3zjcUpGI9GUVMi3u5uyK/OSdlepc=","salt":"+DXyglWxFg4="}]}]}, DeviceInformation{tenantId=jbtest.iot/2019-12-02T08:22:49Z, deviceId=http-inserter-w7lsv262, version=2cf8b8b0-a207-45ea-b0bc-5403c67f64b5, registrationInformation={}, credentials=[DeviceCredential{authId=http-inserter-w7lsvauth-262, type=hashed-password, enabled=null, secrets=[{"hash-function":"sha-256","pwd-hash":"vdO2o/73VTXxyCbaMxBn5Y
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 5 months