This is an automated email from the ASF dual-hosted git repository. zhangduo pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hbase.git
commit aa39ccfc6130409b6fb7e285f3d671fdcaebd7dc Author: Liangjun He <heliang...@apache.org> AuthorDate: Sun May 12 21:51:28 2024 +0800 HBASE-28581 Remove deprecated methods in TableDescriotorBuilder (#5892) Signed-off-by: Duo Zhang <zhang...@apache.org> (cherry picked from commit ca340100535d6c2c43b979e26c9291d892153f1a) --- .../hadoop/hbase/client/TableDescriptorBuilder.java | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java index fcdbe4e4ae6..8636b006e83 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/TableDescriptorBuilder.java @@ -1380,26 +1380,6 @@ public class TableDescriptorBuilder { return setCoprocessorToMap(value); } - /** - * Add a table coprocessor to this table. The coprocessor type must be - * org.apache.hadoop.hbase.coprocessor.RegionObserver or Endpoint. It won't check if the class - * can be loaded or not. Whether a coprocessor is loadable or not will be determined when a - * region is opened. - * @param specStr The Coprocessor specification all in in one String - * @return the modifyable TD - * @deprecated used by HTableDescriptor and admin.rb. As of release 2.0.0, this will be removed - * in HBase 3.0.0. - */ - @Deprecated - public ModifyableTableDescriptor setCoprocessorWithSpec(final String specStr) - throws IOException { - CoprocessorDescriptor cpDesc = - toCoprocessorDescriptor(specStr).orElseThrow(() -> new IllegalArgumentException( - "Format does not match " + CP_HTD_ATTR_VALUE_PATTERN + ": " + specStr)); - checkHasCoprocessor(cpDesc.getClassName()); - return setCoprocessorToMap(specStr); - } - private void checkHasCoprocessor(final String className) throws IOException { if (hasCoprocessor(className)) { throw new IOException("Coprocessor " + className + " already exists.");