Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.19.1
-
None
-
None
-
jdk 1.6, centOS 5.2 and hadoop 0.19.1
-
Reviewed
Description
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.