Skip to content

Commit 9a19fbe

Browse files
committed
Remove unused 'retries' property
1 parent 6a9b68b commit 9a19fbe

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

Diff for: src/main/java/com/ing/data/cassandra/jdbc/utils/JdbcUrlUtil.java

-14
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,6 @@ public final class JdbcUrlUtil {
9191
*/
9292
public static final String TAG_FETCH_SIZE = "fetchSize";
9393

94-
/**
95-
* JDBC URL parameter key for the connection number of retries.
96-
*/
97-
public static final String KEY_CONNECTION_RETRIES = "retries";
98-
99-
/**
100-
* Property name used to retrieve the number of retries when the connection to Cassandra is established. This
101-
* property is mapped from the JDBC URL parameter {@code retries}.
102-
*/
103-
public static final String TAG_CONNECTION_RETRIES = "retries";
104-
10594
/**
10695
* JDBC URL parameter key for the load balancing policy.
10796
*/
@@ -415,9 +404,6 @@ public static Properties parseURL(final String url) throws SQLException {
415404
if (params.containsKey(KEY_FETCH_SIZE)) {
416405
props.setProperty(TAG_FETCH_SIZE, params.get(KEY_FETCH_SIZE));
417406
}
418-
if (params.containsKey(KEY_CONNECTION_RETRIES)) {
419-
props.setProperty(TAG_CONNECTION_RETRIES, params.get(KEY_CONNECTION_RETRIES));
420-
}
421407
if (params.containsKey(KEY_LOAD_BALANCING_POLICY)) {
422408
props.setProperty(TAG_LOAD_BALANCING_POLICY, params.get(KEY_LOAD_BALANCING_POLICY));
423409
}

Diff for: src/test/java/com/ing/data/cassandra/jdbc/UtilsUnitTest.java

-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import static com.ing.data.cassandra.jdbc.utils.ErrorConstants.URI_IS_SIMPLE;
5454
import static com.ing.data.cassandra.jdbc.utils.JdbcUrlUtil.PROTOCOL;
5555
import static com.ing.data.cassandra.jdbc.utils.JdbcUrlUtil.TAG_CLOUD_SECURE_CONNECT_BUNDLE;
56-
import static com.ing.data.cassandra.jdbc.utils.JdbcUrlUtil.TAG_CONNECTION_RETRIES;
5756
import static com.ing.data.cassandra.jdbc.utils.JdbcUrlUtil.TAG_CONSISTENCY_LEVEL;
5857
import static com.ing.data.cassandra.jdbc.utils.JdbcUrlUtil.TAG_CONTACT_POINTS;
5958
import static com.ing.data.cassandra.jdbc.utils.JdbcUrlUtil.TAG_DATABASE_NAME;
@@ -136,7 +135,6 @@ static Stream<Arguments> buildUrlParsingTestCases() {
136135
put(TAG_DATABASE_NAME, "Keyspace1");
137136
put(TAG_LOCAL_DATACENTER, "DC1");
138137
put(TAG_DEBUG, "true");
139-
put(TAG_CONNECTION_RETRIES, "5");
140138
put(TAG_LOAD_BALANCING_POLICY, "com.company.package.CustomLBPolicy");
141139
put(TAG_RETRY_POLICY, "com.company.package.CustomRetryPolicy");
142140
put(TAG_RECONNECT_POLICY, "ConstantReconnectionPolicy()");

0 commit comments

Comments
 (0)