[JBoss JIRA] (ISPN-7820) Document store-by-reference effects in functional commands
by Katia Aresti (JIRA)
[ https://issues.jboss.org/browse/ISPN-7820?page=com.atlassian.jira.plugin.... ]
Katia Aresti commented on ISPN-7820:
------------------------------------
[~rvansa] this makes all the sens to me now
> Document store-by-reference effects in functional commands
> ----------------------------------------------------------
>
> Key: ISPN-7820
> URL: https://issues.jboss.org/browse/ISPN-7820
> Project: Infinispan
> Issue Type: Bug
> Components: Core, Test Suite - Core, Transactions
> Affects Versions: 9.0.0.Final
> Reporter: Radim Vansa
> Assignee: Radim Vansa
>
> In transactional mode, functional read write command loads the value into the context without making a defensive copy. Then, the function is applied directly on that value, exposing uncommitted changes to all other threads. Rollback is ineffective, the value is already changed.
> There are no tests for rollback in FunctionalTxInMemoryTest.
> Reproducer:
> {code:java}
> @Test
> public void testValueInContextIsACopy() throws Exception {
> Object key = getKeyForCache(cache(0, DIST), cache(1, DIST));
> cache(0, DIST).put(key, new ArrayList());
> tm.begin();
> // nasty cast
> FunctionalMap.ReadWriteMap<Object, List> otherRw = (FunctionalMap.ReadWriteMap) rw;
> otherRw.eval(key, (Serializable & Function<EntryView.ReadWriteEntryView<Object, List>, Object>) view -> {
> List list = view.get();
> list.add("woohoo");
> view.set(list);
> return null;
> }).join();
> tm.rollback();
> assertEquals(new ArrayList(), cache(0, DIST).get(key));
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
6 years, 11 months
[JBoss JIRA] (ISPN-7897) WARN messages shown during startup for Infinispan CDI modules
by Sebastian Łaskawiec (JIRA)
[ https://issues.jboss.org/browse/ISPN-7897?page=com.atlassian.jira.plugin.... ]
Sebastian Łaskawiec updated ISPN-7897:
--------------------------------------
Description:
{code}
09:15:07,736 WARN [org.jboss.as.weld] (default task-1) WFLYWELD0052: Using deployment classloader to load proxy classes for module org.infinispan.cdi.embedded:ispn-9.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.jboss.weld.spi]
09:15:07,767 WARN [org.infinispan.manager.DefaultCacheManager] (default task-1) ISPN000435: Cache manager initialized with a default cache configuration but without a name for it. Set it in the GlobalConfiguration
{code}
was:
The following WARN messages are shown if an application with module dependencies are started.
WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.jcache:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.cdi.embedded:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
> WARN messages shown during startup for Infinispan CDI modules
> -------------------------------------------------------------
>
> Key: ISPN-7897
> URL: https://issues.jboss.org/browse/ISPN-7897
> Project: Infinispan
> Issue Type: Bug
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
>
> {code}
> 09:15:07,736 WARN [org.jboss.as.weld] (default task-1) WFLYWELD0052: Using deployment classloader to load proxy classes for module org.infinispan.cdi.embedded:ispn-9.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.jboss.weld.spi]
> 09:15:07,767 WARN [org.infinispan.manager.DefaultCacheManager] (default task-1) ISPN000435: Cache manager initialized with a default cache configuration but without a name for it. Set it in the GlobalConfiguration
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
6 years, 11 months
[JBoss JIRA] (ISPN-7897) WARN messages shown during startup for Infinispan CDI modules
by Sebastian Łaskawiec (JIRA)
[ https://issues.jboss.org/browse/ISPN-7897?page=com.atlassian.jira.plugin.... ]
Sebastian Łaskawiec updated ISPN-7897:
--------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/5183
> WARN messages shown during startup for Infinispan CDI modules
> -------------------------------------------------------------
>
> Key: ISPN-7897
> URL: https://issues.jboss.org/browse/ISPN-7897
> Project: Infinispan
> Issue Type: Bug
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
>
> The following WARN messages are shown if an application with module dependencies are started.
> WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.jcache:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
> WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.cdi.embedded:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
6 years, 11 months
[JBoss JIRA] (ISPN-7897) WARN messages shown during startup for Infinispan CDI modules
by Sebastian Łaskawiec (JIRA)
[ https://issues.jboss.org/browse/ISPN-7897?page=com.atlassian.jira.plugin.... ]
Sebastian Łaskawiec updated ISPN-7897:
--------------------------------------
Status: Open (was: New)
> WARN messages shown during startup for Infinispan CDI modules
> -------------------------------------------------------------
>
> Key: ISPN-7897
> URL: https://issues.jboss.org/browse/ISPN-7897
> Project: Infinispan
> Issue Type: Bug
> Reporter: Sebastian Łaskawiec
> Assignee: Sebastian Łaskawiec
>
> The following WARN messages are shown if an application with module dependencies are started.
> WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.jcache:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
> WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.cdi.embedded:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
6 years, 11 months
[JBoss JIRA] (ISPN-7897) WARN messages shown during startup for Infinispan CDI modules
by Sebastian Łaskawiec (JIRA)
Sebastian Łaskawiec created ISPN-7897:
-----------------------------------------
Summary: WARN messages shown during startup for Infinispan CDI modules
Key: ISPN-7897
URL: https://issues.jboss.org/browse/ISPN-7897
Project: Infinispan
Issue Type: Bug
Reporter: Sebastian Łaskawiec
Assignee: Sebastian Łaskawiec
The following WARN messages are shown if an application with module dependencies are started.
WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.jcache:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
WARN [org.jboss.as.weld] JBAS016017: Using deployment classloader to load proxy classes for module org.infinispan.cdi.embedded:jdg-7.1. Package-private access will not work. To fix this the module should declare dependencies on [org.jboss.weld.core, org.javassist]
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
6 years, 11 months