[infinispan-issues] [JBoss JIRA] (ISPN-3092) AutoNodeSelector throws ArrayIndexOutOfBoundsException when indexName is long
Sanne Grinovero (JIRA)
jira-events at lists.jboss.org
Tue May 28 17:35:55 EDT 2013
[ https://issues.jboss.org/browse/ISPN-3092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sanne Grinovero updated ISPN-3092:
----------------------------------
Fix Version/s: 5.3.0.CR1
Component/s: Querying
> AutoNodeSelector throws ArrayIndexOutOfBoundsException when indexName is long
> -----------------------------------------------------------------------------
>
> Key: ISPN-3092
> URL: https://issues.jboss.org/browse/ISPN-3092
> Project: Infinispan
> Issue Type: Bug
> Components: Querying
> Reporter: Wouter De Borger
> Assignee: Sanne Grinovero
> Fix For: 5.3.0.CR1
>
>
> When hibernate search is used (with capedwarf for example), adding a fourth server to the cluster crashes infinispan.
> I've narrowed the problem down to org.hibernate.search.backend.impl.jgroups.AutoNodeSelector:78
> Here the following formula is used to calculate an array index
> int selectionRange = members.size() - 1;
> int selected = ( indexName.hashCode() % selectionRange) + 1;
> if indexname is long (like "default_taskworker-java__com.google.appengine.api.datastore.Entity")
> the hashcode becomes negative due to integer overflow, resulting in a negative index
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list