Skip to content

Commit

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

Signed-off-by: Duo Zhang <zhangduo@apache.org>
  • Loading branch information
petersomogyi committed Aug 11, 2022
1 parent 1040ab4 commit ad67706
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,13 @@ default Table getTable(TableName tableName, ExecutorService pool) throws IOExcep
*/
TableBuilder getTableBuilder(TableName tableName, ExecutorService pool);

/** 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 ad67706

Please sign in to comment.