[JBoss JIRA] (ISPN-4783) Using new ArrayList<>(resultCache.values())
by Markus Vogt (JIRA)
[ https://issues.jboss.org/browse/ISPN-4783?page=com.atlassian.jira.plugin.... ]
Markus Vogt updated ISPN-4783:
------------------------------
Steps to Reproduce:
1. Put a value into a cache
1.1 cache.size() will return 1
2. use new ArrayList<>(cache.values())
2.1 arraylist.size() will return 2
2.2 2 items can be found in the list
was:
1. Put a value into a cache
1.1 cache.size() will return 1
2. use new ArrayList<>(resultCache.values())
2.1 arraylist.size() will return 2
2.2 2 items can be found in the list
> Using new ArrayList<>(resultCache.values())
> -------------------------------------------
>
> Key: ISPN-4783
> URL: https://issues.jboss.org/browse/ISPN-4783
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 6.0.2.Final
> Reporter: Markus Vogt
> Assignee: Dan Berindei
>
> Hi,
> I am a little bit confused about the behaviour of getting the values from a cache and inserting into an ArrayList.
> I've putted one value into a cache, so that cache.size() is returning 1. If i now use 'new ArrayList<>(resultCache.values())', there will be two items in the list.
> By iterating over the cache, only one iteration will run... Where comes the second item from?
> Regards,
> Markus
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (ISPN-4783) Using new ArrayList<>(resultCache.values())
by Markus Vogt (JIRA)
Markus Vogt created ISPN-4783:
---------------------------------
Summary: Using new ArrayList<>(resultCache.values())
Key: ISPN-4783
URL: https://issues.jboss.org/browse/ISPN-4783
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 6.0.2.Final
Reporter: Markus Vogt
Assignee: Dan Berindei
Hi,
I am a little bit confused about the behaviour of getting the values from a cache and inserting into an ArrayList.
I've putted one value into a cache, so that cache.size() is returning 1. If i now use 'new ArrayList<>(resultCache.values())', there will be two items in the list.
By iterating over the cache, only one iteration will run... Where comes the second item from?
Regards,
Markus
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (ISPN-4782) Server should use FORK instead of a Mux block
by Tristan Tarrant (JIRA)
Tristan Tarrant created ISPN-4782:
-------------------------------------
Summary: Server should use FORK instead of a Mux block
Key: ISPN-4782
URL: https://issues.jboss.org/browse/ISPN-4782
Project: Infinispan
Issue Type: Enhancement
Components: Server
Affects Versions: 7.0.0.Beta2
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 7.0.0.CR1
The server jgroups subsystem uses a MuxChannel to multiplex messages to different consumers on the same channel.
We should use the FORK protocol instead since it has many advantages (i.e. it is what WildFly uses, it doesn't "dirty" the channel).
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (ISPN-4781) CustomFailurePolicy.init is never called.
by Duncan Doyle (JIRA)
[ https://issues.jboss.org/browse/ISPN-4781?page=com.atlassian.jira.plugin.... ]
Duncan Doyle updated ISPN-4781:
-------------------------------
Description:
The CustomFailurePolicy interface provides an "init(Cache<K, V> cache)" method, which, according to the JavaDoc, should be invoked during the initialization phase. The method is however never called and my custom XSite failure policy is this never initiated.
It seems that the BackupSenderImpl class initiates the CustomFailurePolicy in its 'start()' method does not call the 'init(Cache<K,V> cache)' method of the failure policy.
was:
The CustomFailurePolicy interface provides an "init(Cache<K, V> cache)" method, which, according to the JavaDoc, should be invoked during the initialization phase. The method is however never called and by custom XSite failure policy is this never initiated.
It seems that the BackupSenderImpl class initiates the CustomFailurePolicy in its 'start()' method does not call the 'init(Cache<K,V> cache)' method of the failure policy.
> CustomFailurePolicy.init is never called.
> -----------------------------------------
>
> Key: ISPN-4781
> URL: https://issues.jboss.org/browse/ISPN-4781
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 7.0.0.Beta2
> Environment: Mac OS X 10.9.4, Oracle HotSpot 1.7.0_67
> Reporter: Duncan Doyle
> Assignee: Duncan Doyle
>
> The CustomFailurePolicy interface provides an "init(Cache<K, V> cache)" method, which, according to the JavaDoc, should be invoked during the initialization phase. The method is however never called and my custom XSite failure policy is this never initiated.
> It seems that the BackupSenderImpl class initiates the CustomFailurePolicy in its 'start()' method does not call the 'init(Cache<K,V> cache)' method of the failure policy.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months
[JBoss JIRA] (ISPN-4781) CustomFailurePolicy.init is never called.
by Duncan Doyle (JIRA)
[ https://issues.jboss.org/browse/ISPN-4781?page=com.atlassian.jira.plugin.... ]
Duncan Doyle updated ISPN-4781:
-------------------------------
Description:
The CustomFailurePolicy interface provides an "init(Cache<K, V> cache)" method, which, according to the JavaDoc, should be invoked during the initialization phase. The method is however never called and my custom XSite failure policy is this never initiated.
It seems that the BackupSenderImpl class initiates the CustomFailurePolicy in its 'start()' method and does not call the 'init(Cache<K,V> cache)' method of the failure policy.
was:
The CustomFailurePolicy interface provides an "init(Cache<K, V> cache)" method, which, according to the JavaDoc, should be invoked during the initialization phase. The method is however never called and my custom XSite failure policy is this never initiated.
It seems that the BackupSenderImpl class initiates the CustomFailurePolicy in its 'start()' method does not call the 'init(Cache<K,V> cache)' method of the failure policy.
> CustomFailurePolicy.init is never called.
> -----------------------------------------
>
> Key: ISPN-4781
> URL: https://issues.jboss.org/browse/ISPN-4781
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 7.0.0.Beta2
> Environment: Mac OS X 10.9.4, Oracle HotSpot 1.7.0_67
> Reporter: Duncan Doyle
> Assignee: Duncan Doyle
>
> The CustomFailurePolicy interface provides an "init(Cache<K, V> cache)" method, which, according to the JavaDoc, should be invoked during the initialization phase. The method is however never called and my custom XSite failure policy is this never initiated.
> It seems that the BackupSenderImpl class initiates the CustomFailurePolicy in its 'start()' method and does not call the 'init(Cache<K,V> cache)' method of the failure policy.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years, 2 months