HBASE-2973 NPE in LogCleaner
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@995281 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e144e8f32d
commit
2210cf908b
|
@ -513,6 +513,7 @@ Release 0.21.0 - Unreleased
|
||||||
written out to SequenceFile
|
written out to SequenceFile
|
||||||
HBASE-2969 missing sync in HTablePool.getTable()
|
HBASE-2969 missing sync in HTablePool.getTable()
|
||||||
(Guilherme Mauro Germoglio Barbosa via Stack)
|
(Guilherme Mauro Germoglio Barbosa via Stack)
|
||||||
|
HBASE-2973 NPE in LogCleaner
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -123,7 +123,8 @@ public class LogCleaner extends Chore {
|
||||||
@Override
|
@Override
|
||||||
protected void chore() {
|
protected void chore() {
|
||||||
try {
|
try {
|
||||||
FileStatus[] files = this.fs.listStatus(this.oldLogDir);
|
FileStatus [] files = this.fs.listStatus(this.oldLogDir);
|
||||||
|
if (files == null) return;
|
||||||
int nbDeletedLog = 0;
|
int nbDeletedLog = 0;
|
||||||
FILE: for (FileStatus file : files) {
|
FILE: for (FileStatus file : files) {
|
||||||
Path filePath = file.getPath();
|
Path filePath = file.getPath();
|
||||||
|
|
Loading…
Reference in New Issue