diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.java index fc7db7634d93..4659fe63eefc 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncBufferedMutatorBuilder.java @@ -106,13 +106,25 @@ default AsyncBufferedMutatorBuilder setMaxRetries(int maxRetries) { /** * Set a rpc request attribute. + *

+ * Introduced in 2.6.1. Any custom implementations of this class should implement this method in + * order to take advantage of the new behavior. + *

*/ - AsyncBufferedMutatorBuilder setRequestAttribute(String key, byte[] value); + default AsyncBufferedMutatorBuilder setRequestAttribute(String key, byte[] value) { + throw new UnsupportedOperationException("Not implemented"); + } /** * Set multiple rpc request attributes. + *

+ * Introduced in 2.6.1. Any custom implementations of this class should implement this method in + * order to take advantage of the new behavior. + *

*/ - AsyncBufferedMutatorBuilder setRequestAttributes(Map requestAttributes); + default AsyncBufferedMutatorBuilder setRequestAttributes(Map requestAttributes) { + throw new UnsupportedOperationException("Not implemented"); + } /** * Create the {@link AsyncBufferedMutator} instance.