accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <>
Subject [jira] [Resolved] (ACCUMULO-740) Infinite loop in RFile code
Date Thu, 30 Aug 2012 12:59:07 GMT


Keith Turner resolved ACCUMULO-740.

    Resolution: Fixed
      Assignee: Keith Turner

I looked at 1.4, this bug will not occur there.  I do not think it will ever call the function
w/ a zero length array.  Code changes for 1.5 introduced the possibility of calling the function
with a zero length array.

I do not think this bug fix needs to be back ported to 1.4
> Infinite loop in RFile code
> ---------------------------
>                 Key: ACCUMULO-740
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: Keith Turner
>            Assignee: Keith Turner
>             Fix For: 1.5.0
> Saw an infinite loop in RFile code when new on demand indexing was turned on and table
contained zero length values.  I think this is only an issue in trunk, but need to analyze
1.4 code to make sure it does not happen. 
> The problematic code is 
> {noformat}
> in, MByteSequence mbseq,
int len){...}
> {noformat}
> When the input mbseq is backed by a zero length array, an infinite loop will occur. 
Also noticed that the code could overflow the integer and cause an inifinite loop (a key or
value > 2^30 would be needed to trigger this).  I suspect 1.4 will never generate an input
that will cause the infinite loop, but I am not 100% sure about this.  

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:

View raw message