accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Turner (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-740) Infinite loop in RFile code
Date Thu, 23 Aug 2012 16:28:42 GMT


Keith Turner commented on ACCUMULO-740:

Changes made for ACCUMULO-473 exposed this bug
> Infinite loop in RFile code
> ---------------------------
>                 Key: ACCUMULO-740
>                 URL:
>             Project: Accumulo
>          Issue Type: Bug
>            Reporter: 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:!default.jspa
For more information on JIRA, see:


View raw message