Skip to content

Commit

Permalink
HBASE-27281 Add default implementation for Connection$getClusterId (a…
Browse files Browse the repository at this point in the history
…pache#4683)

Signed-off-by: Duo Zhang <[email protected]>
  • Loading branch information
petersomogyi authored Aug 11, 2022
1 parent bffae99 commit 39b496e
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,13 @@ default BufferedMutator getBufferedMutator(TableName tableName) throws IOExcepti
*/
AsyncConnection toAsyncConnection();

/** Returns the cluster ID unique to this HBase cluster. */
String getClusterId();
/**
* Returns the cluster ID unique to this HBase cluster. <br>
* The default implementation is added to keep client compatibility.
*/
default String getClusterId() {
return null;
}

/**
* Retrieve an Hbck implementation to fix an HBase cluster. The returned Hbck is not guaranteed to
Expand Down

0 comments on commit 39b496e

Please sign in to comment.