HBASE-3838 RegionCoprocesorHost.preWALRestore throws npe in case there is no RegionObserver registered
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1098705 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6c32f36250
commit
2a4f052bcc
|
@ -93,6 +93,8 @@ Release 0.91.0 - Unreleased
|
|||
cluster and was returning master hostname for rs to use
|
||||
HBASE-3829 TestMasterFailover failures in jenkins
|
||||
HBASE-3843 splitLogWorker starts too early (Prakash Khemani)
|
||||
HBASE-3838 RegionCoprocesorHost.preWALRestore throws npe in case there is
|
||||
no RegionObserver registered (Himanshu Vashishtha)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-3290 Max Compaction Size (Nicolas Spiegelberg via Stack)
|
||||
|
|
|
@ -920,12 +920,13 @@ public class RegionCoprocessorHost
|
|||
ctx = ObserverContext.createAndPrepare(env, ctx);
|
||||
((RegionObserver)env.getInstance()).preWALRestore(ctx, info, logKey,
|
||||
logEdit);
|
||||
}
|
||||
bypass |= ctx.shouldBypass();
|
||||
if (ctx.shouldComplete()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return bypass;
|
||||
}
|
||||
|
||||
|
@ -943,10 +944,11 @@ public class RegionCoprocessorHost
|
|||
ctx = ObserverContext.createAndPrepare(env, ctx);
|
||||
((RegionObserver)env.getInstance()).postWALRestore(ctx, info,
|
||||
logKey, logEdit);
|
||||
}
|
||||
if (ctx.shouldComplete()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue