This is an automated email from the ASF dual-hosted git repository.

zghao pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git

commit 6f07efb971d237f1c9f4d5209a878126104dd48e
Author: Qi Yu <[email protected]>
AuthorDate: Wed Nov 25 15:09:40 2020 +0800

    HBASE-25325 Remove unused class ClusterSchemaException (#2704)
    
    Signed-off-by: Guanghao Zhang <[email protected]>
    Signed-off-by: Duo Zhang <[email protected]>
    Signed-off-by: Viraj Jasani <[email protected]>
---
 .../apache/hadoop/hbase/master/ClusterSchema.java  | 14 +++-----
 .../hbase/master/ClusterSchemaException.java       | 37 ----------------------
 2 files changed, 5 insertions(+), 46 deletions(-)

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 56a1f33..0f7153b 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 <code>name</code>
-   * @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 e4d7736..0000000
--- 
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")
[email protected]
-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);
-  }
-}

Reply via email to