[infinispan-issues] [JBoss JIRA] (ISPN-5027) OutOfMemoryError in entry retriever when state transfer chunk size is Integer.MAX_VALUE

Dan Berindei (JIRA) issues at jboss.org
Thu Nov 27 04:02:39 EST 2014


    [ https://issues.jboss.org/browse/ISPN-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023448#comment-13023448 ] 

Dan Berindei commented on ISPN-5027:
------------------------------------

We could validate the state transfer chunk size to be <= 10k, there's no reason to have a higher limit in practice.

> OutOfMemoryError in entry retriever when state transfer chunk size is Integer.MAX_VALUE
> ---------------------------------------------------------------------------------------
>
>                 Key: ISPN-5027
>                 URL: https://issues.jboss.org/browse/ISPN-5027
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 7.0.2.Final
>            Reporter: Dan Berindei
>            Priority: Optional
>             Fix For: 7.1.0.Beta1
>
>
> {{DistributedEntryRetriever}} pre-allocates an {{ArrayDeque}} and and {{ArrayBlockingQueue}} of the same size as the state transfer chunk size.
> {{ReplStateTransferCacheLoaderTest}} sets the state transfer chunk size to {{Integer.MAX_VALUE}}, so it will trigger an {{OutOfMemoryError}} at the end of the test, when {{TestingUtil.killCaches()}} tries to log the contents of the cache (if TRACE logging is enabled).



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the infinispan-issues mailing list