[ 
https://issues.apache.org/jira/browse/GEODE-1674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15388258#comment-15388258
 ] 

ASF GitHub Bot commented on GEODE-1674:
---------------------------------------

GitHub user nabarunnag opened a pull request:

    https://github.com/apache/incubator-geode/pull/215

    GEODE-1674: Using a immuatable object to pass the HashIndexSet and its mask

    
            * Immutable ojects pairs the mask and set together
            * There is no race condition in which the mask differs from the set 
leading to any ArrayOutOfBoundsException.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nabarunnag/incubator-geode feature/GEODE-1674

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-geode/pull/215.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #215
    
----
commit 04f5ebbf9466d47e66c45ce0fdbab8302f290611
Author: nabarun <[email protected]>
Date:   2016-07-19T17:31:52Z

    GEODE-1674: Using a immuatable object to pass the HashIndexSet and its mask
    
            * Immutable ojects pairs the mask and set together
            * There is no race condition in which the mask differs from the set 
leading to any ArrayOutOfBoundsException.

----


> Race condition in HashIndexSetIterator leads to ArrayOutOfBoundsException
> -------------------------------------------------------------------------
>
>                 Key: GEODE-1674
>                 URL: https://issues.apache.org/jira/browse/GEODE-1674
>             Project: Geode
>          Issue Type: Bug
>          Components: querying
>            Reporter: nabarun
>
> Object array may be reassigned by the time the function is trying to access 
> current element and the mask value may be larger than the size of the array 
> and this will lead to array out bounds exception.
> location : private HashIndexSetIterator(Object keyToMatch, Object[] objects) 
> in HashIndexSet.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to