HBASE-1093 NPE in HStore#compact
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@730068 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f9198e21e
commit
5c0d3a5ec8
|
@ -124,6 +124,7 @@ Release 0.19.0 - Unreleased
|
||||||
HBASE-1100 HBASE-1062 broke TestForceSplit
|
HBASE-1100 HBASE-1062 broke TestForceSplit
|
||||||
HBASE-1191 shell tools -> close_region does not work for regions that did
|
HBASE-1191 shell tools -> close_region does not work for regions that did
|
||||||
not deploy properly on startup
|
not deploy properly on startup
|
||||||
|
HBASE-1093 NPE in HStore#compact
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-901 Add a limit to key length, check key and value length on client side
|
HBASE-901 Add a limit to key length, check key and value length on client side
|
||||||
|
|
|
@ -866,6 +866,10 @@ public class HStore implements HConstants {
|
||||||
for (int i = 0; i < countOfFiles; i++) {
|
for (int i = 0; i < countOfFiles; i++) {
|
||||||
HStoreFile file = filesToCompact.get(i);
|
HStoreFile file = filesToCompact.get(i);
|
||||||
Path path = file.getMapFilePath();
|
Path path = file.getMapFilePath();
|
||||||
|
if (path == null) {
|
||||||
|
LOG.warn("Path is null for " + file);
|
||||||
|
return null;
|
||||||
|
}
|
||||||
int len = 0;
|
int len = 0;
|
||||||
for (FileStatus fstatus:fs.listStatus(path)) {
|
for (FileStatus fstatus:fs.listStatus(path)) {
|
||||||
len += fstatus.getLen();
|
len += fstatus.getLen();
|
||||||
|
|
Loading…
Reference in New Issue