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 "Johan Oskarsson (JIRA)" <ji...@apache.org> on 2009/05/22 18:18:45 UTC

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

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

Johan Oskarsson updated HADOOP-5728:
------------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

I just committed this. Thanks, Wang!

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