[JBoss JIRA] (ISPN-11802) Create SPI for Cross-Site Replication conflict resolution
by Ryan Emerson (Jira)
[ https://issues.redhat.com/browse/ISPN-11802?page=com.atlassian.jira.plugi... ]
Ryan Emerson resolved ISPN-11802.
---------------------------------
Resolution: Done
> Create SPI for Cross-Site Replication conflict resolution
> ---------------------------------------------------------
>
> Key: ISPN-11802
> URL: https://issues.redhat.com/browse/ISPN-11802
> Project: Infinispan
> Issue Type: Enhancement
> Components: Core, Cross-Site Replication
> Reporter: Pedro Ruivo
> Assignee: Pedro Ruivo
> Priority: Major
> Fix For: 12.0.0.Dev03
>
>
> A conflict happens if 2 sites try to update the same key (put/remove) concurrently.
> With async Cross-Site Replication (aka IRAC) when a conflict is detected, we use the site name to pick the winning update.
> h2. Interface
> {code:java}
> interface ABC<V> { // or concrete class
> String site(); //the site name which wrote this value
> V value(); // the value. can be null if the key was removed
> Metadata metadata(); //can be null
> }
> interface Resolve<K, V> {
> ABC<V> resolve(K key, ABC<V> entry1, ABC<V> entry2);
> }
> {code}
> h2. Configuration
> Set the class name to use. Can be a {{Class}} object (as shown above) or a {{String}} with the class name.
> For server mode, you need to add your jar with the classes required to {{server/lib}}.
> The configuration fails to validate if the conflict resolution class is set with {{SYNC}} strategy.
> {code:java}
> ConfigurationBuilder.sites().addBackup()
> .site("S")
> .strategy(BackupConfiguration.BackupStrategy.ASYNC)
> .conflictResolution(MyResover.class);
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12257) RemoteSpringSessionTest.testCreatingSessionWhenUsingREST always fails
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-12257?page=com.atlassian.jira.plugi... ]
Dan Berindei reassigned ISPN-12257:
-----------------------------------
Assignee: Dan Berindei
> RemoteSpringSessionTest.testCreatingSessionWhenUsingREST always fails
> ---------------------------------------------------------------------
>
> Key: ISPN-12257
> URL: https://issues.redhat.com/browse/ISPN-12257
> Project: Infinispan
> Issue Type: Bug
> Components: Spring Integration, Test Suite
> Affects Versions: 12.0.0.Dev02
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 12.0.0.Dev03
>
>
> The Spring Boot session references a `java.util.Collections$UnmodifiableList`, which is not in the default allow list.
> {noformat}
> org.infinispan.commons.CacheListenerException: ISPN004035: Caught exception [java.lang.reflect.InvocationTargetException] while invoking method [public void org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge.processCacheEntryCreated(org.infinispan.client.hotrod.event.ClientCacheEntryCustomEvent)] on listener instance: org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge@2d06db91
> at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher$ClientListenerInvocation.invoke(ClientEventDispatcher.java:156) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher.invokeCallbacks(ClientEventDispatcher.java:120) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher.invokeEvent(ClientEventDispatcher.java:102) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher.invokeEvent(ClientEventDispatcher.java:31) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.event.impl.ClientListenerNotifier.invokeEvent(ClientListenerNotifier.java:197) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.invokeEvent(HeaderDecoder.java:198) [infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.impl.transport.netty.HeaderDecoder.decode(HeaderDecoder.java:167) [infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> Caused by: java.lang.reflect.InvocationTargetException
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
> at org.infinispan.client.hotrod.event.impl.ClientEventDispatcher$ClientListenerInvocation.invoke(ClientEventDispatcher.java:154) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> ...
> Caused by: org.infinispan.client.hotrod.exceptions.HotRodClientException: ISPN004034: Unable to unmarshall bytes ACED0005737200266F7[...]
> at org.infinispan.client.hotrod.marshall.MarshallerUtil.bytes2obj(MarshallerUtil.java:72) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.DataFormat.valueToObj(DataFormat.java:108) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge.readEvent(RemoteApplicationPublishedBridge.java:77) ~[infinispan-spring5-remote-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.spring.remote.session.RemoteApplicationPublishedBridge.processCacheEntryCreated(RemoteApplicationPublishedBridge.java:52) ~[infinispan-spring5-remote-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> ...
> Caused by: org.infinispan.commons.CacheException: ISPN000936: Class 'java.util.Collections$UnmodifiableList' blocked by deserialization allow list. Adjust the configuration serialization allow list regular expression to include this class.
> at org.infinispan.commons.marshall.CheckedInputStream.resolveClass(CheckedInputStream.java:25) ~[infinispan-commons-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> ...
> at java.util.HashMap.readObject(HashMap.java:1551) ~[?:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
> at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1216) ~[?:?]
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2359) ~[?:?]
> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2193) ~[?:?]
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1685) ~[?:?]
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2498) ~[?:?]
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2392) ~[?:?]
> at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2193) ~[?:?]
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1685) ~[?:?]
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:499) ~[?:?]
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:457) ~[?:?]
> at org.infinispan.commons.marshall.JavaSerializationMarshaller.objectFromByteBuffer(JavaSerializationMarshaller.java:53) ~[infinispan-commons-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.commons.marshall.AbstractMarshaller.objectFromByteBuffer(AbstractMarshaller.java:82) ~[infinispan-commons-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> at org.infinispan.client.hotrod.marshall.MarshallerUtil.bytes2obj(MarshallerUtil.java:56) ~[infinispan-client-hotrod-12.0.0-SNAPSHOT.jar:12.0.0-SNAPSHOT]
> ...
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12288) Upgrade to Hibernate Search 6.0.0.Beta10
by Gustavo Fernandes (Jira)
[ https://issues.redhat.com/browse/ISPN-12288?page=com.atlassian.jira.plugi... ]
Gustavo Fernandes reassigned ISPN-12288:
----------------------------------------
Assignee: Gustavo Fernandes
> Upgrade to Hibernate Search 6.0.0.Beta10
> ----------------------------------------
>
> Key: ISPN-12288
> URL: https://issues.redhat.com/browse/ISPN-12288
> Project: Infinispan
> Issue Type: Task
> Components: Embedded Querying, Remote Querying
> Affects Versions: 12.0.0.Dev02
> Reporter: Yoann Rodière
> Assignee: Gustavo Fernandes
> Priority: Major
> Fix For: 12.0.0.Dev03
>
> Attachments: javabean-property-access.diff
>
>
> https://in.relation.to/2020/09/07/hibernate-search-6-0-0-Beta10/
> Relevant changes:
> * {{maxDepth}} was renamed to {{includeDepth}}; this may affect the mapping code for Remote Query in particular. PR: https://github.com/hibernate/hibernate-search/pull/2337
> * If Infinispan calls {{SearchResult#totalHitCount()}} anywhere, then it should now call {{total().hitCount()}} instead. {{totalHitCount}} is deprecated.
> * Some SPI interfaces related to the type model have changed and Infinispan implementation may not compile anymore. I recommend changing the Infinispan implementation the same way we changed another mapper bundled with Search (see the attached diff). An added benefit: with these changes, embedded mode will support annotations on both methods and fields (which was supported in 5 but was dropped during the migration to Search 6).
> * {{IndexFieldDescriptor}} now exposes a {{multiValuedInRoot()}} method, which I was told would be very useful to Infinispan, which currently has to go through some hoops to compute that value based on the multi-valued-ness of a field **and its parents**.
> * Timeouts are now forwarded to the entity loader. If Infinispan defines an entity loader when loading hits as entities instead of projections (and it probably should), some changes may be necessary in this area. PR: https://github.com/hibernate/hibernate-search/pull/2333
> Optionally, the new ["total hit count threshold"|https://in.relation.to/2020/09/07/hibernate-search-6-0-0-Beta10/#total-hit-count-threshold] could be used to improve performance in Infinispan, but that should probably be addressed a follow-up ticket.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12288) Upgrade to Hibernate Search 6.0.0.Beta10
by Yoann Rodière (Jira)
Yoann Rodière created ISPN-12288:
------------------------------------
Summary: Upgrade to Hibernate Search 6.0.0.Beta10
Key: ISPN-12288
URL: https://issues.redhat.com/browse/ISPN-12288
Project: Infinispan
Issue Type: Task
Components: Embedded Querying, Remote Querying
Affects Versions: 12.0.0.Dev02
Reporter: Yoann Rodière
Fix For: 12.0.0.Dev03
Attachments: javabean-property-access.diff
https://in.relation.to/2020/09/07/hibernate-search-6-0-0-Beta10/
Relevant changes:
* {{maxDepth}} was renamed to {{includeDepth}}; this may affect the mapping code for Remote Query in particular. PR: https://github.com/hibernate/hibernate-search/pull/2337
* If Infinispan calls {{SearchResult#totalHitCount()}} anywhere, then it should now call {{total().hitCount()}} instead. {{totalHitCount}} is deprecated.
* Some SPI interfaces related to the type model have changed and Infinispan implementation may not compile anymore. I recommend changing the Infinispan implementation the same way we changed another mapper bundled with Search (see the attached diff). An added benefit: with these changes, embedded mode will support annotations on both methods and fields (which was supported in 5 but was dropped during the migration to Search 6).
* {{IndexFieldDescriptor}} now exposes a {{multiValuedInRoot()}} method, which I was told would be very useful to Infinispan, which currently has to go through some hoops to compute that value based on the multi-valued-ness of a field **and its parents**.
* Timeouts are now forwarded to the entity loader. If Infinispan defines an entity loader when loading hits as entities instead of projections (and it probably should), some changes may be necessary in this area. PR: https://github.com/hibernate/hibernate-search/pull/2333
Optionally, the new ["total hit count threshold"|https://in.relation.to/2020/09/07/hibernate-search-6-0-0-Beta10/#total-hit-count-threshold] could be used to improve performance in Infinispan, but that should probably be addressed a follow-up ticket.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12280) Failfast if lsof is not present in unix
by Katia Aresti (Jira)
[ https://issues.redhat.com/browse/ISPN-12280?page=com.atlassian.jira.plugi... ]
Katia Aresti updated ISPN-12280:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 12.0.0.Dev03
Resolution: Done
> Failfast if lsof is not present in unix
> ---------------------------------------
>
> Key: ISPN-12280
> URL: https://issues.redhat.com/browse/ISPN-12280
> Project: Infinispan
> Issue Type: Enhancement
> Components: Test Suite
> Affects Versions: 12.0.0.Dev02
> Reporter: Diego Lovison
> Assignee: Diego Lovison
> Priority: Major
> Fix For: 12.0.0.Dev03
>
>
> Some tests require lsof be present in order to work properly
> Example:
> {noformat}
> 13:24:51.246 [INFO] Infinispan JCACHE (JSR-107) TCK Runner Remote ...... SUCCESS [05:58 min]
> 13:24:51.246 [INFO] Server Integration ................................. SUCCESS [ 11.991 s]
> 13:24:51.246 [INFO] Integration tests - WildFly Module Integration Tests SUCCESS [ 58.984 s]
> {noformat}
> when not present
> {noformat}
> [ERROR] Errors:
> [ERROR] BaseHotRodQueryIT.testRemoteQuery ? HotRodClient org.infinispan.server.hotrod....
> [ERROR] BaseHotRodQueryIT.testUninverting ? HotRodClient org.infinispan.server.hotrod....
> [ERROR] HotRodClientIT.testCacheManager ? HotRodClient org.infinispan.server.hotrod.Ca...
> [ERROR] HotRodQueryIT.testRemoteQuery ? HotRodClient org.infinispan.server.hotrod.Cach...
> [ERROR] HotRodQueryIT.testUninverting ? HotRodClient org.infinispan.server.hotrod.Cach...
> [ERROR] InfinispanRemoteWithQueryIT.testRemoteQuery ? HotRodClient org.infinispan.serv...
> [ERROR] InfinispanRemoteWithQueryIT.testUninverting ? HotRodClient org.infinispan.serv...
> {noformat}
> It will take times to find out that the root cause is because lsof is missing
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months
[JBoss JIRA] (ISPN-12287) Console 0.9.Final
by Katia Aresti (Jira)
Katia Aresti created ISPN-12287:
-----------------------------------
Summary: Console 0.9.Final
Key: ISPN-12287
URL: https://issues.redhat.com/browse/ISPN-12287
Project: Infinispan
Issue Type: Component Upgrade
Components: Server
Affects Versions: 12.0.0.Dev02
Reporter: Katia Aresti
Assignee: Katia Aresti
Include the latest 0.9.Final in the server
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 7 months