saintstack commented on a change in pull request #1487: HBASE-23800 Add 
documentation about the CECPs changes
URL: https://github.com/apache/hbase/pull/1487#discussion_r407870830
 
 

 ##########
 File path: src/main/asciidoc/_chapters/cp.adoc
 ##########
 @@ -178,11 +178,27 @@ average or summation for an entire table which spans 
hundreds of regions.
 
 In contrast to observer coprocessors, where your code is run transparently, 
endpoint
 coprocessors must be explicitly invoked using the
-link:https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/Table.html#coprocessorService-java.lang.Class-byte:A-byte:A-org.apache.hadoop.hbase.client.coprocessor.Batch.Call-[CoprocessorService()]
+link:https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/AsyncTable.html#coprocessorService-java.util.function.Function-org.apache.hadoop.hbase.client.ServiceCaller-byte:A-[CoprocessorService()]
 method available in
-link:https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/Table.html[Table]
-or
-link:https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/HTable.html[HTable].
+link:https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/AsyncTable.html[AsyncTable].
+
+[WARNING]
+.On using coprocessorService method with sync client
+====
+The coprocessorService method in 
link:https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/client/Table.html[Table]
+has been deprecated.
+
+In link:https://issues.apache.org/jira/browse/HBASE-21512[HBASE-21512]
+we reimplement the sync client based on the async client. And the 
coprocessorService
+method defined in `Table` interface references the method from protobuf's
+`BlockingInterface`, which means we need to use a separated thread pool to 
execute
+the method to avoid blocking the async client, which is not good.
 
 Review comment:
   s/to avoid blocking/so we avoid blocking/
   
   s/, which is not good/(We want to avoid blocking calls in our async 
implementation).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to