You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2009/04/23 19:00:31 UTC

[jira] Commented: (HADOOP-5728) FSEditLog.printStatistics may cause IndexOutOfBoundsException

    [ https://issues.apache.org/jira/browse/HADOOP-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12702004#action_12702004 ] 

Tsz Wo (Nicholas), SZE commented on HADOOP-5728:
------------------------------------------------

+1 patch looks good.

> FSEditLog.printStatistics may cause IndexOutOfBoundsException
> -------------------------------------------------------------
>
>                 Key: HADOOP-5728
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5728
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.19.1
>         Environment: jdk 1.6, centOS 5.2 and hadoop 0.19.1
>            Reporter: Wang Xu
>            Assignee: Wang Xu
>             Fix For: 0.19.2
>
>         Attachments: editlog-printstatistics.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> We met IndexOutOfBoundsException exception when did logSync or rollEditlog,
> the direct reason is the printStatistics of FSEditLog used the first element of
>  StringArray editStreams, but does not check whether editStreams is empty when 
> it is not null.  As below:
>     if (editStreams == null ) {
>       return;
>     }
>     .....[snipped]....
>     buf.append(" Number of syncs: " + editStreams.get(0).getNumSync());
> the simple solution is to check whether it is empty.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.