Skip to content

Commit

Permalink
checkstyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
szucsvillo committed Feb 21, 2025
1 parent f323535 commit efa8679
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,8 @@ public static Optional<HighAvailabilityGroup> get(String url, Properties propert
*
* @param url The HA connection url optionally; empty optional if properties disables fallback
* @param properties The client connection properties
* @return The connection url of the single cluster to fall back on, with a fully qualified JDBC protocol
* @return The connection url of the single cluster to fall back on,
* with a fully qualified JDBC protocol
* @throws SQLException if fails to get HA information and/or invalid properties are seen
*/
static Optional<String> getFallbackCluster(String url, Properties properties) throws SQLException {
Expand All @@ -403,8 +404,8 @@ static Optional<String> getFallbackCluster(String url, Properties properties) th

// Ensure the fallback cluster URL includes the JDBC protocol prefix
if (!fallbackCluster.startsWith(PhoenixRuntime.JDBC_PROTOCOL_ZK)) {
fallbackCluster = PhoenixRuntime.JDBC_PROTOCOL_ZK +
PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + fallbackCluster;
fallbackCluster = PhoenixRuntime.JDBC_PROTOCOL_ZK
+ PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + fallbackCluster;
}

LOG.info("Falling back to single cluster '{}' for the HA group {} to serve HA connection "
Expand Down

0 comments on commit efa8679

Please sign in to comment.