You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/05/09 16:11:12 UTC

[jira] [Commented] (KAFKA-3682) ArrayIndexOutOfBoundsException thrown by SkimpyOffsetMap.get() when full

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

ASF GitHub Bot commented on KAFKA-3682:
---------------------------------------

GitHub user edoardocomar opened a pull request:

    https://github.com/apache/kafka/pull/1352

    KAFKA-3682 ArrayIndexOutOfBoundsException thrown by

    SkimpyOffsetMap.get() when full
    
    Limited number of attempts to number of map slots after the internal
    positionOf() goes into linear search mode.
    Added unit test
    
    Co-developed with @mimaison

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

    $ git pull https://github.com/edoardocomar/kafka KAFKA-3682

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

    https://github.com/apache/kafka/pull/1352.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 #1352
    
----
commit e27e9e2fee5922d7a2bb27fcac01a4ac18e8ca26
Author: edoardo <ec...@uk.ibm.com>
Date:   2016-05-09T15:48:07Z

    KAFKA-3682 ArrayIndexOutOfBoundsException thrown by
    SkimpyOffsetMap.get() when full
    
    Limited number of attempts to number of map slots after the internal
    positionOf() goes into linear search mode.
    Added unit test
    
    Co-developed with @mimaison

----


> ArrayIndexOutOfBoundsException thrown by SkimpyOffsetMap.get() when full
> ------------------------------------------------------------------------
>
>                 Key: KAFKA-3682
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3682
>             Project: Kafka
>          Issue Type: Bug
>          Components: core
>            Reporter: Edoardo Comar
>            Assignee: Edoardo Comar
>
> When the SkimpyOffsetMap is full, a request for a key that is not in the map will throw an ArrayIndexOutOfBoundsException as the number of internal attempts overflows after Integer.MAXINT



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