[ 
https://issues.apache.org/jira/browse/HADOOP-5728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wang Xu updated HADOOP-5728:
----------------------------

    Status: Patch Available  (was: Open)

The patch will check if the StringArray is empty.

> 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.

Reply via email to