Fix broke build; SplitTransaction can be passed null server and services in test context
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1031954 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7975f85146
commit
6fd4989c82
|
@ -181,7 +181,8 @@ class SplitTransaction {
|
|||
final RegionServerServices services)
|
||||
throws IOException {
|
||||
LOG.info("Starting split of region " + this.parent);
|
||||
if (server.isStopped() || services.isStopping()) {
|
||||
if ((server != null && server.isStopped()) ||
|
||||
(services != null && services.isStopping())) {
|
||||
throw new IOException("Server is stopped or stopping");
|
||||
}
|
||||
assert !this.parent.lock.writeLock().isHeldByCurrentThread() : "Unsafe to hold write lock while performing RPCs";
|
||||
|
|
Loading…
Reference in New Issue