[JBoss JIRA] (ISPN-11796) Introduce strong typed indexing configuration
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11796:
----------------------------------------
Summary: Introduce strong typed indexing configuration
Key: ISPN-11796
URL: https://issues.redhat.com/browse/ISPN-11796
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying, Remote Querying
Affects Versions: 11.0.0.Dev05
Reporter: Gustavo Fernandes
Fix For: 11.0.0.Final
{code:xml}
<!-- Minimal -->
<indexing>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Medium -->
<indexing storage="file" path="${server.data}/index">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<indexing storage="heap">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Maximal -->
<indexing storage="file" path="${server.data}/index">
<index-reader refresh-interval="10s"/>
<!-- Check SYNC behavior Hsearch 6 -->
<index-writer mode="async" commit-internal="10s"/>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
<properties>
<property name="default.indexwriter.merge_factor">30</property>
</properties>
</indexing>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11630) Server and client get out of sync after multimap get with metadata operation
by Pedro Ruivo (Jira)
[ https://issues.redhat.com/browse/ISPN-11630?page=com.atlassian.jira.plugi... ]
Pedro Ruivo updated ISPN-11630:
-------------------------------
Fix Version/s: 10.1.9.Final
(was: 10.1.8.Final)
> Server and client get out of sync after multimap get with metadata operation
> ----------------------------------------------------------------------------
>
> Key: ISPN-11630
> URL: https://issues.redhat.com/browse/ISPN-11630
> Project: Infinispan
> Issue Type: Bug
> Components: Hot Rod, Multimap
> Affects Versions: 11.0.0.Dev04, 10.1.6.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 11.0.0.CR1, 10.1.9.Final
>
>
> The Hot Rod server includes metadata information with the {{GET_MULTIMAP_WITH_METADATA_REQUEST}} response even if the status is {{KEY_DOES_NOT_EXIST_STATUS}}, but the client does not expect any other information after the header, so it tries to read the metadata information as the start of a new response and fails:
> {noformat}
> 08:50:15,468 TRACE (testng-Test:[]) [Codec] [] Wrote header for messageId=47333 to PooledUnsafeDirectByteBuf(ridx: 0, widx: 14, cap: 19). Operation code: 0x69(GET_MULTIMAP_WITH_METADATA_REQUEST). Flags: 0x1. Topology id: -1
> 08:50:15,468 TRACE (HotRod-Test-ServerIO-2061-1:[]) [Encoder2x] Write topology response header with no change
> 08:50:15,468 TRACE (Test-Client-Async-454-1:[]) [Codec] Received response for messageId=47333
> 08:50:15,468 TRACE (Test-Client-Async-454-1:[]) [HeaderDecoder] Decoding header for GetKeyWithMetadataMultimapOperation{(default), key=[B0x4A016B, flags=1, connection=127.0.0.1/127.0.0.1:38741} on [id: 0x36567c12, L:/127.0.0.1:36216 - R:127.0.0.1/127.0.0.1:38741]
> 08:50:15,468 TRACE (Test-Client-Async-454-1:[]) [HeaderDecoder] Decoding payload for GetKeyWithMetadataMultimapOperation{(default), key=[B0x4A016B, flags=1, connection=127.0.0.1/127.0.0.1:38741} on [id: 0x36567c12, L:/127.0.0.1:36216 - R:127.0.0.1/127.0.0.1:38741]
> 08:50:15,468 TRACE (Test-Client-Async-454-1:[]) [Codec] Socket dump: A1E5F102\j020003FFFFFFFFFFFFFFFF00
> 08:50:15,468 TRACE (Test-Client-Async-454-1:[]) [RetryOnFailureOperation] (1) GetKeyWithMetadataMultimapOperation{(default), key=[B0x4A016B, flags=1, connection=127.0.0.1/127.0.0.1:38741} Requesting [id: 0x36567c12, L:/127.0.0.1:36216 - R:127.0.0.1/127.0.0.1:38741] close due to exception
> org.infinispan.client.hotrod.exceptions.InvalidResponseException: ISPN004003: Invalid magic number. Expected 0xa1 and received 0x3
> at org.infinispan.client.hotrod.impl.protocol.Codec20.readMessageId(Codec20.java:147) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:86) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.HintedReplayingDecoder.callDecode(HintedReplayingDecoder.java:94) ~[classes/:?]
> at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:276) ~[netty-codec-4.1.45.Final.jar:4.1.45.Final]
> {noformat}
> Because the client can't parse the remaining buffer as a response, it tries to close the connection, but sometimes even closing throws an {{AssertionError}}, causing random failures in test {{RemoteMultimapCacheAPITest.testGetWithMetadataNotExist}}:
> {noformat}
> 08:50:15,469 TRACE (Test-Client-Async-454-1:[]) [ChannelRecord] Closing channel [id: 0x36567c12, L:/127.0.0.1:36216 ! R:127.0.0.1/127.0.0.1:38741]
> 08:50:15,469 TRACE (testng-Test:[]) [ChannelFactory] Releasing channel [id: 0x36567c12, L:/127.0.0.1:36216 ! R:127.0.0.1/127.0.0.1:38741]
> 08:50:15,469 TRACE (testng-Test:[]) [ChannelPool] Requesting [id: 0x36567c12, L:/127.0.0.1:36216 ! R:127.0.0.1/127.0.0.1:38741] close due to exception
> java.lang.AssertionError: Error releasing [id: 0x36567c12, L:/127.0.0.1:36216 ! R:127.0.0.1/127.0.0.1:38741]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.release(ChannelPool.java:168) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelRecord.release(ChannelRecord.java:77) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.releaseChannel(ChannelFactory.java:312) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.operations.HotRodOperation.releaseChannel(HotRodOperation.java:103) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.invoke(RetryOnFailureOperation.java:80) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.activateChannel(ChannelPool.java:215) [classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.acquire(ChannelPool.java:84) [classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:262) [classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:300) [classes/:?]
> at org.infinispan.client.hotrod.impl.operations.AbstractKeyOperation.fetchChannelAndInvoke(AbstractKeyOperation.java:41) [classes/:?]
> at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:62) [classes/:?]
> at org.infinispan.client.hotrod.impl.multimap.RemoteMultimapCacheImpl.getWithMetadata(RemoteMultimapCacheImpl.java:106) [classes/:?]
> at org.infinispan.client.hotrod.RemoteMultimapCacheAPITest.testGetWithMetadataNotExist(RemoteMultimapCacheAPITest.java:59) [test-classes/:?]
> 08:50:15,479 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.client.hotrod.RemoteMultimapCacheAPITest.testGetWithMetadataNotExist
> java.lang.AssertionError: Error releasing [id: 0x36567c12, L:/127.0.0.1:36216 ! R:127.0.0.1/127.0.0.1:38741]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.release(ChannelPool.java:168) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelRecord.release(ChannelRecord.java:77) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.releaseChannel(ChannelFactory.java:312) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.operations.HotRodOperation.releaseChannel(HotRodOperation.java:103) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.invoke(RetryOnFailureOperation.java:80) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.activateChannel(ChannelPool.java:215) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelPool.acquire(ChannelPool.java:84) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:262) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.transport.netty.ChannelFactory.fetchChannelAndInvoke(ChannelFactory.java:300) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.operations.AbstractKeyOperation.fetchChannelAndInvoke(AbstractKeyOperation.java:41) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:62) ~[classes/:?]
> at org.infinispan.client.hotrod.impl.multimap.RemoteMultimapCacheImpl.getWithMetadata(RemoteMultimapCacheImpl.java:106) ~[classes/:?]
> at org.infinispan.client.hotrod.RemoteMultimapCacheAPITest.testGetWithMetadataNotExist(RemoteMultimapCacheAPITest.java:59) ~[test-classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11795) Entity mapping deprecations
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11795:
----------------------------------------
Summary: Entity mapping deprecations
Key: ISPN-11795
URL: https://issues.redhat.com/browse/ISPN-11795
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying
Reporter: Gustavo Fernandes
* Custom FieldBridges
* AnalyzerDef
* Index time boost
* Analyzer Discriminator
* Default Analyzer
* Default IndexNullAs
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11794) Query indexing configuration schema
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11794:
----------------------------------------
Summary: Query indexing configuration schema
Key: ISPN-11794
URL: https://issues.redhat.com/browse/ISPN-11794
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying, Remote Querying
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Introduce strong typed indexing configuration:
{code:xml}
<!-- Minimal -->
<indexing>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Medium -->
<indexing storage="file" path="${server.data}/index">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<indexing storage="heap">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Maximal -->
<indexing storage="file" path="${server.data}/index">
<index-reader refresh-interval="10s"/>
<!-- Check SYNC behavior Hsearch 6 -->
<index-writer mode="async" commit-internal="10s"/>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
<properties>
<property name="default.indexwriter.merge_factor">30</property>
</properties>
</indexing>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11793) Query indexing configuration schema
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11793:
----------------------------------------
Summary: Query indexing configuration schema
Key: ISPN-11793
URL: https://issues.redhat.com/browse/ISPN-11793
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying, Remote Querying
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Introduce strong typed indexing configuration:
{code:xml}
<!-- Minimal -->
<indexing>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Medium -->
<indexing storage="file" path="${server.data}/index">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<indexing storage="heap">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Maximal -->
<indexing storage="file" path="${server.data}/index">
<index-reader refresh-interval="10s"/>
<!-- Check SYNC behavior Hsearch 6 -->
<index-writer mode="async" commit-internal="10s"/>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
<properties>
<property name="default.indexwriter.merge_factor">30</property>
</properties>
</indexing>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11792) Query indexing configuration schema
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11792:
----------------------------------------
Summary: Query indexing configuration schema
Key: ISPN-11792
URL: https://issues.redhat.com/browse/ISPN-11792
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying, Remote Querying
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Introduce strong typed indexing configuration:
{code:xml}
<!-- Minimal -->
<indexing>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Medium -->
<indexing storage="file" path="${server.data}/index">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<indexing storage="heap">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Maximal -->
<indexing storage="file" path="${server.data}/index">
<index-reader refresh-interval="10s"/>
<!-- Check SYNC behavior Hsearch 6 -->
<index-writer mode="async" commit-internal="10s"/>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
<properties>
<property name="default.indexwriter.merge_factor">30</property>
</properties>
</indexing>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11791) Query indexing configuration schema
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11791:
----------------------------------------
Summary: Query indexing configuration schema
Key: ISPN-11791
URL: https://issues.redhat.com/browse/ISPN-11791
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying, Remote Querying
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Introduce strong typed indexing configuration:
{code:xml}
<!-- Minimal -->
<indexing>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Medium -->
<indexing storage="file" path="${server.data}/index">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<indexing storage="heap">
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
</indexing>
{code}
{code:xml}
<!-- Maximal -->
<indexing storage="file" path="${server.data}/index">
<index-reader refresh-interval="10s"/>
<!-- Check SYNC behavior Hsearch 6 -->
<index-writer mode="async" commit-internal="10s"/>
<indexed-entities>
<indexed-entity>org.infinispan.query.test.Person</indexed-entity>
</indexed-entities>
<properties>
<property name="default.indexwriter.merge_factor">30</property>
</properties>
</indexing>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11790) Deprecate CacheQuery
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-11790?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes commented on ISPN-11790:
------------------------------------------
CacheQuery behaviour should be deprecated so that org.infinispan.query.dsl.Query is the only supported query object. This involves:
* Supporting ResultIterator in org.infinispan.query.dsl.Query;
* Introducing a QueryResult object to org.infinispan.query.dsl.Query containing info about the results, such as maxResults (Optional<Long>) and the list of results. In the future it could hold more info about the resultset, such as explanation and scores.
* Deprecate Query.getProjection()
> Deprecate CacheQuery
> --------------------
>
> Key: ISPN-11790
> URL: https://issues.redhat.com/browse/ISPN-11790
> Project: Infinispan
> Issue Type: Enhancement
> Components: Embedded Querying
> Affects Versions: 11.0.0.Dev05
> Reporter: Gustavo Fernandes
> Priority: Major
> Labels: query-ispn11
> Fix For: 11.0.0.Final
>
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11790) Deprecate CacheQuery
by Gustavo Fernandes (Jira)
Gustavo Fernandes created ISPN-11790:
----------------------------------------
Summary: Deprecate CacheQuery
Key: ISPN-11790
URL: https://issues.redhat.com/browse/ISPN-11790
Project: Infinispan
Issue Type: Enhancement
Components: Embedded Querying
Affects Versions: 11.0.0.Dev05
Reporter: Gustavo Fernandes
Fix For: 11.0.0.Final
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months