HBASE-1119 ArrayOutOfBoundsException in HStore.compact

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@733393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2009-01-10 22:44:32 +00:00
parent 16a60cf285
commit 5833008cb7
2 changed files with 2 additions and 1 deletions

View File

@ -139,6 +139,7 @@ Release 0.19.0 - Unreleased
-ROOT- goes down
HBASE-1114 Weird NPEs compacting
HBASE-1116 generated web.xml and svn don't play nice together
HBASE-1119 ArrayOutOfBoundsException in HStore.compact
IMPROVEMENTS
HBASE-901 Add a limit to key length, check key and value length on client side

View File

@ -868,7 +868,7 @@ public class HStore implements HConstants {
int len = 0;
// listStatus can come back null.
FileStatus [] fss = this.fs.listStatus(path);
for (int ii = 0; fss != null && i < fss.length; ii++) {
for (int ii = 0; fss != null && ii < fss.length; ii++) {
len += fss[ii].getLen();
}
fileSizes[i] = len;