From 31d880b5dd805003fd309a371514108830538a1b Mon Sep 17 00:00:00 2001 From: Qi Yu Date: Wed, 25 Nov 2020 15:09:40 +0800 Subject: [PATCH] HBASE-25325 Remove unused class ClusterSchemaException (#2704) Signed-off-by: Guanghao Zhang Signed-off-by: Duo Zhang Signed-off-by: Viraj Jasani --- .../hadoop/hbase/master/ClusterSchema.java | 14 +++---- .../hbase/master/ClusterSchemaException.java | 37 ------------------- 2 files changed, 5 insertions(+), 46 deletions(-) delete mode 100644 hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchemaException.java diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchema.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchema.java index 56a1f3378de..0f7153ba801 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchema.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchema.java @@ -18,10 +18,10 @@ package org.apache.hadoop.hbase.master; import java.io.IOException; -import java.io.InterruptedIOException; import java.util.List; import org.apache.hadoop.hbase.NamespaceDescriptor; +import org.apache.hadoop.hbase.ServiceNotRunningException; import org.apache.hadoop.hbase.master.procedure.ProcedurePrepareLatch; import org.apache.yetus.audience.InterfaceAudience; import org.apache.hadoop.hbase.util.NonceKey; @@ -82,8 +82,7 @@ public interface ClusterSchema { * @param nonceKey A unique identifier for this operation from the client or process. * @param latch A latch to block on for precondition validation * @return procedure id - * @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException} - * as well as {@link IOException} + * @throws IOException if service is not running see {@link ServiceNotRunningException} */ long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException; @@ -93,8 +92,7 @@ public interface ClusterSchema { * @param nonceKey A unique identifier for this operation from the client or process. * @param latch A latch to block on for precondition validation * @return procedure id - * @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException} - * as well as {@link IOException} + * @throws IOException if service is not running see {@link ServiceNotRunningException} */ long modifyNamespace(NamespaceDescriptor descriptor, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException; @@ -105,8 +103,7 @@ public interface ClusterSchema { * @param nonceKey A unique identifier for this operation from the client or process. * @param latch A latch to block on for precondition validation * @return procedure id - * @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException} - * as well as {@link IOException} + * @throws IOException if service is not running see {@link ServiceNotRunningException} */ long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch) throws IOException; @@ -115,8 +112,7 @@ public interface ClusterSchema { * Get a Namespace * @param name Name of the Namespace * @return Namespace descriptor for name - * @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException} - * as well as {@link IOException} + * @throws IOException if namespace does not exist */ // No Future here because presumption is that the request will go against cached metadata so // return immediately -- no need of running a Procedure. diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchemaException.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchemaException.java deleted file mode 100644 index e4d77368313..00000000000 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ClusterSchemaException.java +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.hbase.master; - -import org.apache.hadoop.hbase.HBaseIOException; -import org.apache.yetus.audience.InterfaceAudience; - -@SuppressWarnings("serial") -@InterfaceAudience.Private -public class ClusterSchemaException extends HBaseIOException { - public ClusterSchemaException(String message) { - super(message); - } - - public ClusterSchemaException(String message, Throwable cause) { - super(message, cause); - } - - public ClusterSchemaException(Throwable cause) { - super(cause); - } -}