diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MasterObserver.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MasterObserver.java index 02607b732dd..076c18a09ca 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MasterObserver.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/coprocessor/MasterObserver.java @@ -225,18 +225,6 @@ public interface MasterObserver { final ObserverContext ctx, final TableName tableName) throws IOException {} - /** - * Called prior to modifying a table's properties. Called as part of modify - * table RPC call. - * @param ctx the environment to interact with the framework and master - * @param tableName the name of the table - * @param newDescriptor after modify operation, table will have this descriptor - * @deprecated Since 2.1. Will be removed in 3.0. - */ - @Deprecated - default void preModifyTable(final ObserverContext ctx, - final TableName tableName, TableDescriptor newDescriptor) throws IOException {} - /** * Called prior to modifying a table's properties. Called as part of modify * table RPC call. @@ -248,22 +236,9 @@ public interface MasterObserver { default TableDescriptor preModifyTable(final ObserverContext ctx, final TableName tableName, TableDescriptor currentDescriptor, TableDescriptor newDescriptor) throws IOException { - preModifyTable(ctx, tableName, newDescriptor); return newDescriptor; } - /** - * Called after the modifyTable operation has been requested. Called as part - * of modify table RPC call. - * @param ctx the environment to interact with the framework and master - * @param tableName the name of the table - * @param currentDescriptor current TableDescriptor of the table - * @deprecated Since 2.1. Will be removed in 3.0. - */ - @Deprecated - default void postModifyTable(final ObserverContext ctx, - final TableName tableName, TableDescriptor currentDescriptor) throws IOException {} - /** * Called after the modifyTable operation has been requested. Called as part * of modify table RPC call. @@ -274,24 +249,7 @@ public interface MasterObserver { */ default void postModifyTable(final ObserverContext ctx, final TableName tableName, TableDescriptor oldDescriptor, TableDescriptor currentDescriptor) - throws IOException { - postModifyTable(ctx, tableName, currentDescriptor); - } - - /** - * Called prior to modifying a table's properties. Called as part of modify - * table procedure and it is async to the modify table RPC call. - * - * @param ctx the environment to interact with the framework and master - * @param tableName the name of the table - * @param newDescriptor after modify operation, table will have this descriptor - * @deprecated Since 2.1. Will be removed in 3.0. - */ - @Deprecated - default void preModifyTableAction( - final ObserverContext ctx, - final TableName tableName, - final TableDescriptor newDescriptor) throws IOException {} + throws IOException {} /** * Called prior to modifying a table's properties. Called as part of modify @@ -306,24 +264,7 @@ public interface MasterObserver { final ObserverContext ctx, final TableName tableName, final TableDescriptor currentDescriptor, - final TableDescriptor newDescriptor) throws IOException { - preModifyTableAction(ctx, tableName, newDescriptor); - } - - /** - * Called after to modifying a table's properties. Called as part of modify - * table procedure and it is async to the modify table RPC call. - * - * @param ctx the environment to interact with the framework and master - * @param tableName the name of the table - * @param currentDescriptor current TableDescriptor of the table - * @deprecated Since 2.1. Will be removed in 3.0. - */ - @Deprecated - default void postCompletedModifyTableAction( - final ObserverContext ctx, - final TableName tableName, - final TableDescriptor currentDescriptor) throws IOException {} + final TableDescriptor newDescriptor) throws IOException {} /** * Called after to modifying a table's properties. Called as part of modify @@ -338,9 +279,7 @@ public interface MasterObserver { final ObserverContext ctx, final TableName tableName, final TableDescriptor oldDescriptor, - final TableDescriptor currentDescriptor) throws IOException { - postCompletedModifyTableAction(ctx, tableName, currentDescriptor); - } + final TableDescriptor currentDescriptor) throws IOException {} /** * Called prior to enabling a table. Called as part of enable table RPC call. @@ -916,16 +855,6 @@ public interface MasterObserver { default void postDeleteNamespace(final ObserverContext ctx, String namespace) throws IOException {} - /** - * Called prior to modifying a namespace's properties. - * @param ctx the environment to interact with the framework and master - * @param newNsDescriptor after modify operation, namespace will have this descriptor - * @deprecated Since 2.1. Will be removed in 3.0. - */ - @Deprecated - default void preModifyNamespace(final ObserverContext ctx, - NamespaceDescriptor newNsDescriptor) throws IOException {} - /** * Called prior to modifying a namespace's properties. * @param ctx the environment to interact with the framework and master @@ -934,19 +863,7 @@ public interface MasterObserver { */ default void preModifyNamespace(final ObserverContext ctx, NamespaceDescriptor currentNsDescriptor, NamespaceDescriptor newNsDescriptor) - throws IOException { - preModifyNamespace(ctx, newNsDescriptor); - } - - /** - * Called after the modifyNamespace operation has been requested. - * @param ctx the environment to interact with the framework and master - * @param currentNsDescriptor current NamespaceDescriptor of the namespace - * @deprecated Since 2.1. Will be removed in 3.0. - */ - @Deprecated - default void postModifyNamespace(final ObserverContext ctx, - NamespaceDescriptor currentNsDescriptor) throws IOException {} + throws IOException {} /** * Called after the modifyNamespace operation has been requested. @@ -956,9 +873,7 @@ public interface MasterObserver { */ default void postModifyNamespace(final ObserverContext ctx, NamespaceDescriptor oldNsDescriptor, NamespaceDescriptor currentNsDescriptor) - throws IOException { - postModifyNamespace(ctx, currentNsDescriptor); - } + throws IOException {} /** * Called before a getNamespaceDescriptor request has been processed.