[NO ISSUE][CONF] Change default metadata registration timeout
- user model changes: no
- storage format changes: no
- interface changes: no
Details:
- since the binding of metadata node is preceded by
operations such as localRecovery which requires
interacting with cloud where current default of
1min may fall short, hence updating it to 5mins.
Change-Id: Iaf86be0859b6524a09798790b344469eb6bd3874
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/18348
Reviewed-by: Murtadha Hubail <mhubail@apache.org>
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1/cluster_state_1.1.regexadm b/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1/cluster_state_1.1.regexadm
index 57a14bd..92df8f0 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1/cluster_state_1.1.regexadm
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1/cluster_state_1.1.regexadm
@@ -57,7 +57,7 @@
"metadata\.callback\.port" : 0,
"metadata\.listen\.port" : 0,
"metadata\.node" : "asterix_nc1",
- "metadata\.registration\.timeout\.secs" : 60,
+ "metadata\.registration\.timeout\.secs" : 300,
"replication\.enabled" : false,
"replication\.factor" : 2,
"replication\.log\.batchsize" : 4096,
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_full/cluster_state_1_full.1.regexadm b/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_full/cluster_state_1_full.1.regexadm
index 09492ba..4d37887 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_full/cluster_state_1_full.1.regexadm
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_full/cluster_state_1_full.1.regexadm
@@ -57,7 +57,7 @@
"metadata\.callback\.port" : 0,
"metadata\.listen\.port" : 0,
"metadata\.node" : "asterix_nc1",
- "metadata\.registration\.timeout\.secs" : 60,
+ "metadata\.registration\.timeout\.secs" : 300,
"replication\.enabled" : false,
"replication\.factor" : 2,
"replication\.log\.batchsize" : 4096,
diff --git a/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_less/cluster_state_1_less.1.regexadm b/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_less/cluster_state_1_less.1.regexadm
index 58fc0dc..3189a3c 100644
--- a/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_less/cluster_state_1_less.1.regexadm
+++ b/asterixdb/asterix-app/src/test/resources/runtimets/results/api/cluster_state_1_less/cluster_state_1_less.1.regexadm
@@ -57,7 +57,7 @@
"metadata\.callback\.port" : 0,
"metadata\.listen\.port" : 0,
"metadata\.node" : "asterix_nc1",
- "metadata\.registration\.timeout\.secs" : 60,
+ "metadata\.registration\.timeout\.secs" : 300,
"replication\.enabled" : false,
"replication\.factor" : 2,
"replication\.log\.batchsize" : 4096,
diff --git a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/MetadataProperties.java b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/MetadataProperties.java
index 252017f..8d18bfd 100644
--- a/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/MetadataProperties.java
+++ b/asterixdb/asterix-common/src/main/java/org/apache/asterix/common/config/MetadataProperties.java
@@ -37,7 +37,7 @@
public enum Option implements IOption {
METADATA_NODE(STRING, null),
- METADATA_REGISTRATION_TIMEOUT_SECS(POSITIVE_INTEGER, 60),
+ METADATA_REGISTRATION_TIMEOUT_SECS(POSITIVE_INTEGER, 5 * 60),
METADATA_LISTEN_PORT(NONNEGATIVE_INTEGER, 0),
METADATA_CALLBACK_PORT(NONNEGATIVE_INTEGER, 0);