From 1872c81826f7b2bc68abddf4d77c2a019821154b Mon Sep 17 00:00:00 2001 From: alexsa Date: Mon, 17 Mar 2025 09:18:08 +0100 Subject: [PATCH] Default to empty DC failover preferred remoted DCs --- .../com/datastax/oss/driver/api/core/config/OptionsMap.java | 2 +- core/src/main/resources/reference.conf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/datastax/oss/driver/api/core/config/OptionsMap.java b/core/src/main/java/com/datastax/oss/driver/api/core/config/OptionsMap.java index 98faf3e590c..6e1726569b5 100644 --- a/core/src/main/java/com/datastax/oss/driver/api/core/config/OptionsMap.java +++ b/core/src/main/java/com/datastax/oss/driver/api/core/config/OptionsMap.java @@ -382,7 +382,7 @@ protected static void fillWithDriverDefaults(OptionsMap map) { map.put(TypedDriverOption.LOAD_BALANCING_DC_FAILOVER_ALLOW_FOR_LOCAL_CONSISTENCY_LEVELS, false); map.put(TypedDriverOption.METRICS_GENERATE_AGGREGABLE_HISTOGRAMS, true); map.put( - TypedDriverOption.LOAD_BALANCING_DC_FAILOVER_PREFERRED_REMOTE_DCS, ImmutableList.of("")); + TypedDriverOption.LOAD_BALANCING_DC_FAILOVER_PREFERRED_REMOTE_DCS, ImmutableList.of()); } @Immutable diff --git a/core/src/main/resources/reference.conf b/core/src/main/resources/reference.conf index f09ffd18a10..4ee87267d79 100644 --- a/core/src/main/resources/reference.conf +++ b/core/src/main/resources/reference.conf @@ -580,7 +580,7 @@ datastax-java-driver { # Required: no # Modifiable at runtime: no # Overridable in a profile: no - preferred-remote-dcs = [""] + preferred-remote-dcs = [] } }