This is an automated email from the ASF dual-hosted git repository.

yuchenhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 0dc3e4b31 doc(go-client): add deprecated marker to 
TableConnector.Close() (#1448)
0dc3e4b31 is described below

commit 0dc3e4b312d322f7554b3c35a4fd13bc4fc993e9
Author: Yandi Lee <[email protected]>
AuthorDate: Tue Apr 18 15:15:36 2023 +0800

    doc(go-client): add deprecated marker to TableConnector.Close() (#1448)
---
 go-client/pegasus/table_connector.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/go-client/pegasus/table_connector.go 
b/go-client/pegasus/table_connector.go
index 0a000ae4b..346bfebec 100644
--- a/go-client/pegasus/table_connector.go
+++ b/go-client/pegasus/table_connector.go
@@ -192,6 +192,8 @@ type TableConnector interface {
        // NOTE: this operation is not guaranteed to be atomic
        BatchGet(ctx context.Context, keys []CompositeKey) (values [][]byte, 
err error)
 
+       // Deprecated: danger operation: table is managed by client and should 
only be Close once when client is exiting.
+       // this operation will kill all table-related loops
        Close() error
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to