hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wang Xu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-5728) FSEditLog.printStatistics may cause IndexOutOfBoundsException
Date Thu, 23 Apr 2009 13:51:30 GMT
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

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

View raw message