Skip to content

Commit

Permalink
Extract default operation timeout in a static variable
Browse files Browse the repository at this point in the history
  • Loading branch information
krvikash authored and findepi committed Feb 21, 2024
1 parent 02c10fa commit 9474d1e
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
@DefunctConfig("kudu.client.default-socket-read-timeout")
public class KuduClientConfig
{
private static final Duration DEFAULT_OPERATION_TIMEOUT = new Duration(30, TimeUnit.SECONDS);
private static final Splitter SPLITTER = Splitter.on(',').trimResults().omitEmptyStrings();

private List<String> masterAddresses = ImmutableList.of();
private Duration defaultAdminOperationTimeout = new Duration(30, TimeUnit.SECONDS);
private Duration defaultOperationTimeout = new Duration(30, TimeUnit.SECONDS);
private Duration defaultAdminOperationTimeout = DEFAULT_OPERATION_TIMEOUT;
private Duration defaultOperationTimeout = DEFAULT_OPERATION_TIMEOUT;
private boolean disableStatistics;
private boolean schemaEmulationEnabled;
private String schemaEmulationPrefix = "presto::";
Expand Down

0 comments on commit 9474d1e

Please sign in to comment.