HBASE-25325 Remove unused class ClusterSchemaException (#2704)
Signed-off-by: Guanghao Zhang <zghao@apache.org> Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
8e3727ea06
commit
6f07efb971
|
@ -18,10 +18,10 @@
|
||||||
package org.apache.hadoop.hbase.master;
|
package org.apache.hadoop.hbase.master;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InterruptedIOException;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
import org.apache.hadoop.hbase.NamespaceDescriptor;
|
||||||
|
import org.apache.hadoop.hbase.ServiceNotRunningException;
|
||||||
import org.apache.hadoop.hbase.master.procedure.ProcedurePrepareLatch;
|
import org.apache.hadoop.hbase.master.procedure.ProcedurePrepareLatch;
|
||||||
import org.apache.yetus.audience.InterfaceAudience;
|
import org.apache.yetus.audience.InterfaceAudience;
|
||||||
import org.apache.hadoop.hbase.util.NonceKey;
|
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 nonceKey A unique identifier for this operation from the client or process.
|
||||||
* @param latch A latch to block on for precondition validation
|
* @param latch A latch to block on for precondition validation
|
||||||
* @return procedure id
|
* @return procedure id
|
||||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
* @throws IOException if service is not running see {@link ServiceNotRunningException}
|
||||||
* as well as {@link IOException}
|
|
||||||
*/
|
*/
|
||||||
long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
long createNamespace(NamespaceDescriptor namespaceDescriptor, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
||||||
throws IOException;
|
throws IOException;
|
||||||
|
@ -93,8 +92,7 @@ public interface ClusterSchema {
|
||||||
* @param nonceKey A unique identifier for this operation from the client or process.
|
* @param nonceKey A unique identifier for this operation from the client or process.
|
||||||
* @param latch A latch to block on for precondition validation
|
* @param latch A latch to block on for precondition validation
|
||||||
* @return procedure id
|
* @return procedure id
|
||||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
* @throws IOException if service is not running see {@link ServiceNotRunningException}
|
||||||
* as well as {@link IOException}
|
|
||||||
*/
|
*/
|
||||||
long modifyNamespace(NamespaceDescriptor descriptor, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
long modifyNamespace(NamespaceDescriptor descriptor, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
||||||
throws IOException;
|
throws IOException;
|
||||||
|
@ -105,8 +103,7 @@ public interface ClusterSchema {
|
||||||
* @param nonceKey A unique identifier for this operation from the client or process.
|
* @param nonceKey A unique identifier for this operation from the client or process.
|
||||||
* @param latch A latch to block on for precondition validation
|
* @param latch A latch to block on for precondition validation
|
||||||
* @return procedure id
|
* @return procedure id
|
||||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
* @throws IOException if service is not running see {@link ServiceNotRunningException}
|
||||||
* as well as {@link IOException}
|
|
||||||
*/
|
*/
|
||||||
long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
long deleteNamespace(String name, NonceKey nonceKey, ProcedurePrepareLatch latch)
|
||||||
throws IOException;
|
throws IOException;
|
||||||
|
@ -115,8 +112,7 @@ public interface ClusterSchema {
|
||||||
* Get a Namespace
|
* Get a Namespace
|
||||||
* @param name Name of the Namespace
|
* @param name Name of the Namespace
|
||||||
* @return Namespace descriptor for <code>name</code>
|
* @return Namespace descriptor for <code>name</code>
|
||||||
* @throws IOException Throws {@link ClusterSchemaException} and {@link InterruptedIOException}
|
* @throws IOException if namespace does not exist
|
||||||
* as well as {@link IOException}
|
|
||||||
*/
|
*/
|
||||||
// No Future here because presumption is that the request will go against cached metadata so
|
// No Future here because presumption is that the request will go against cached metadata so
|
||||||
// return immediately -- no need of running a Procedure.
|
// return immediately -- no need of running a Procedure.
|
||||||
|
|
|
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue