Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[config] Remove deprecated configuration fields #2771

Merged
merged 75 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
75 commits
Select commit Hold shift + click to select a range
4fd07bb
Fix go with timeout goroutine launching
robskillington Oct 13, 2020
3792ac3
Extract now from inner loop
robskillington Oct 13, 2020
c996f46
WIP First pass removing all deprecated config fields
robskillington Oct 13, 2020
63f34ac
merged in master
rallen090 Oct 20, 2020
7d5f0f8
deprecated warning test
rallen090 Oct 20, 2020
a7bfc03
remove listenaddress struct
rallen090 Oct 20, 2020
be9f380
remove typelegacy scheme
rallen090 Oct 20, 2020
05d2923
metric type config
rallen090 Oct 20, 2020
c88d677
metric type config 2
rallen090 Oct 20, 2020
8151c0f
fs to filesystem 1
rallen090 Oct 20, 2020
437291a
bootstrap order
rallen090 Oct 20, 2020
2e3963f
more build fixes 1
rallen090 Oct 20, 2020
7dd5233
more build fixes 2
rallen090 Oct 20, 2020
4b2cdc1
more build fixes 3
rallen090 Oct 20, 2020
cd7cf2a
bootstrap misc config changes 1
rallen090 Oct 20, 2020
6bf8f67
bootstrap misc config changes 2
rallen090 Oct 20, 2020
5516cb0
reporters 1
rallen090 Oct 20, 2020
5f28d5d
listen addr
rallen090 Oct 20, 2020
69efb04
reporters 2
rallen090 Oct 20, 2020
2b7fbf5
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 21, 2020
dd879b2
Merge branch 'master' into r/remove-all-deprecated-fields
rallen090 Oct 21, 2020
c6be048
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 21, 2020
8d057a1
bootstrap config tests
rallen090 Oct 21, 2020
448ae35
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 21, 2020
0c6f74a
test fix
rallen090 Oct 21, 2020
20fb0b8
test fix 2
rallen090 Oct 21, 2020
cd8e974
test fix 3
rallen090 Oct 21, 2020
e77ce68
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 21, 2020
6396cd8
test fix 4
rallen090 Oct 21, 2020
17cd9a0
test fix 5
rallen090 Oct 21, 2020
fe3eca7
test fix 6
rallen090 Oct 21, 2020
1d79f40
test fix 7
rallen090 Oct 21, 2020
9909bb5
bootstrap remove from config 1
rallen090 Oct 21, 2020
3ed1002
for config changes 1
rallen090 Oct 21, 2020
f15e43e
for config changes 2
rallen090 Oct 21, 2020
6c01aea
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 21, 2020
215eca4
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 21, 2020
ebeef92
for config changes 3
rallen090 Oct 21, 2020
cb04ded
integration test fixes
rallen090 Oct 21, 2020
8490406
more test fixing 1
rallen090 Oct 21, 2020
8be56c3
more test fixing 1
rallen090 Oct 21, 2020
21ca72f
config fix 1
rallen090 Oct 21, 2020
963da12
config fix 2
rallen090 Oct 21, 2020
8b1dc1d
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 23, 2020
7c0c897
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 26, 2020
9d93823
merged in master
rallen090 Oct 26, 2020
361f7ed
clarifying bootstrap order
rallen090 Oct 26, 2020
700cfd0
changelog
rallen090 Oct 26, 2020
03e2235
remove all cost reporting code 1
rallen090 Oct 26, 2020
99f95ea
Merge branch 'master' into ra/dbnode-config-filesystem-name
rallen090 Oct 26, 2020
0233987
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 26, 2020
fad7a04
default quoted
rallen090 Oct 26, 2020
3a27236
more feedback 1
rallen090 Oct 26, 2020
4fd1f30
changelog 2
rallen090 Oct 26, 2020
95f93df
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 27, 2020
3a4e3b9
pulling in fs changes
rallen090 Oct 27, 2020
e7de3f1
default cache change
rallen090 Oct 27, 2020
0b42cec
test fixing
rallen090 Oct 27, 2020
b07bc54
test fixing 2
rallen090 Oct 27, 2020
f3474f1
test fix 3
rallen090 Oct 27, 2020
df4fcb5
test fix 4
rallen090 Oct 28, 2020
cf7b4da
added bootstrap mode
rallen090 Oct 28, 2020
20ab22d
added bootstrap mode 2
rallen090 Oct 28, 2020
1e63cf9
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 28, 2020
e3f65e9
test fix
rallen090 Oct 28, 2020
9436afc
changelog
rallen090 Oct 28, 2020
25fdee3
rebased
rallen090 Oct 28, 2020
256cd58
feedback
rallen090 Oct 28, 2020
7eee1a0
test fix
rallen090 Oct 28, 2020
2356155
remove single node md
rallen090 Oct 28, 2020
56261eb
feedback
rallen090 Oct 29, 2020
88efec4
feedback 2
rallen090 Oct 29, 2020
efae023
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 29, 2020
0fc5de1
comment
rallen090 Oct 29, 2020
47720e3
Merge remote-tracking branch 'origin/master' into r/remove-all-deprec…
rallen090 Oct 29, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ If you run into any issues with the upgrade or need to downgrade to a previous v
## Features

- **M3Query**: Add multi-zone and multi-region configuration for coordinator ([#1687](https://github.com/m3db/m3/pull/1687))
- **M3Query**: Add debug param to `GET` `/api/v1/namespace` endpoint for better readability ([#1698](https://github.com/m3db/m3/pull/1698))
- **M3Query**: Add debug param to `GET` `/api/v1/services/m3db/namespace` endpoint for better readability ([#1698](https://github.com/m3db/m3/pull/1698))
rallen090 marked this conversation as resolved.
Show resolved Hide resolved
- **M3Coordinator**: Add "ingest_latency" histogram metric and return datapoint too old/new errors with offending timestamps ([#1716](https://github.com/m3db/m3/pull/1716))

## Performance
Expand Down
5 changes: 0 additions & 5 deletions config/m3db/clustered-etcd/generated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
"idScheme": "quoted"
"db":
"bootstrap":
"bootstrappers":
- "filesystem"
- "commitlog"
- "peers"
- "uninitialized_topology"
"commitlog":
"returnUnfulfilledForCorruptCommitLogFiles": false
"cache":
Expand Down
6 changes: 0 additions & 6 deletions config/m3db/clustered-etcd/m3dbnode.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,6 @@ function(cluster, coordinator={}, db={}) {
"writeNewSeriesLimitPerSecond": 1048576,
"writeNewSeriesBackoffDuration": "2ms",
"bootstrap": {
"bootstrappers": [
"filesystem",
"commitlog",
"peers",
"uninitialized_topology"
],
"commitlog": {
"returnUnfulfilledForCorruptCommitLogFiles": false
}
Expand Down
7 changes: 0 additions & 7 deletions config/m3db/local-etcd/generated.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
"coordinator":
"limits":
"maxComputedDatapoints": 10000
"listenAddress":
"type": "config"
"value": "0.0.0.0:7201"
Expand All @@ -24,11 +22,6 @@
"idScheme": "quoted"
"db":
"bootstrap":
"bootstrappers":
- "filesystem"
- "commitlog"
- "peers"
- "uninitialized_topology"
"commitlog":
"returnUnfulfilledForCorruptCommitLogFiles": false
"cache":
Expand Down
9 changes: 0 additions & 9 deletions config/m3db/local-etcd/m3dbnode.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ function(coordinator={}, db={}) {
"samplingRate": 1.0,
"extended": "none"
},
"limits": {
"maxComputedDatapoints": 10000
},
"tagOptions": {
// Configuration setting for generating metric IDs from tags.
"idScheme": "quoted"
Expand Down Expand Up @@ -66,12 +63,6 @@ function(coordinator={}, db={}) {
"writeNewSeriesLimitPerSecond": 1048576,
"writeNewSeriesBackoffDuration": "2ms",
"bootstrap": {
"bootstrappers": [
"filesystem",
"commitlog",
"peers",
"uninitialized_topology"
],
"commitlog": {
"returnUnfulfilledForCorruptCommitLogFiles": false
}
Expand Down
9 changes: 1 addition & 8 deletions kube/bundle.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions kube/m3dbnode-configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ metadata:
data:
m3dbnode.yml: |+
coordinator:
listenAddress:
type: "config"
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201
local:
namespaces:
- namespace: default
Expand Down Expand Up @@ -59,11 +57,6 @@ data:
writeNewSeriesBackoffDuration: 2ms

bootstrap:
bootstrappers:
- filesystem
- commitlog
- peers
- uninitialized_topology
commitlog:
returnUnfulfilledForCorruptCommitLogFiles: false

Expand Down
2 changes: 1 addition & 1 deletion kube/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ resource "kubernetes_config_map" "m3dbnode_config" {
namespace = "m3db"
}
data {
m3dbnode.yml = "coordinator:\n listenAddress:\n type: \"config\"\n value: \"0.0.0.0:7201\"\n local:\n namespaces:\n - namespace: default\n type: unaggregated\n retention: 48h\n metrics:\n scope:\n prefix: \"coordinator\"\n prometheus:\n handlerPath: /metrics\n listenAddress: 0.0.0.0:7203\n sanitization: prometheus\n samplingRate: 1.0\n extended: none\n tagOptions:\n idScheme: quoted\n\ndb:\n logging:\n level: info\n\n metrics:\n prometheus:\n handlerPath: /metrics\n sanitization: prometheus\n samplingRate: 1.0\n extended: detailed\n\n listenAddress: 0.0.0.0:9000\n clusterListenAddress: 0.0.0.0:9001\n httpNodeListenAddress: 0.0.0.0:9002\n httpClusterListenAddress: 0.0.0.0:9003\n debugListenAddress: 0.0.0.0:9004\n\n hostID:\n resolver: hostname\n\n client:\n writeConsistencyLevel: majority\n readConsistencyLevel: unstrict_majority\n\n gcPercentage: 100\n\n writeNewSeriesAsync: true\n writeNewSeriesLimitPerSecond: 1048576\n writeNewSeriesBackoffDuration: 2ms\n\n bootstrap:\n bootstrappers:\n - filesystem\n - commitlog\n - peers\n - uninitialized_topology\n fs:\n numProcessorsPerCPU: 0.125\n commitlog:\n returnUnfulfilledForCorruptCommitLogFiles: false\n\n commitlog:\n flushMaxBytes: 524288\n flushEvery: 1s\n queue:\n calculationType: fixed\n size: 2097152\n\n fs:\n filePathPrefix: /var/lib/m3db\n\n config:\n service:\n env: default_env\n zone: embedded\n service: m3db\n cacheDir: /var/lib/m3kv\n etcdClusters:\n - zone: embedded\n endpoints:\n - http://etcd-0.etcd:2379\n - http://etcd-1.etcd:2379\n - http://etcd-2.etcd:2379\n"
m3dbnode.yml = "coordinator:\n listenAddress:\n type: \"config\"\n value: \"0.0.0.0:7201\"\n local:\n namespaces:\n - namespace: default\n type: unaggregated\n retention: 48h\n metrics:\n scope:\n prefix: \"coordinator\"\n prometheus:\n handlerPath: /metrics\n listenAddress: 0.0.0.0:7203\n sanitization: prometheus\n samplingRate: 1.0\n extended: none\n tagOptions:\n idScheme: quoted\n\ndb:\n logging:\n level: info\n\n metrics:\n prometheus:\n handlerPath: /metrics\n sanitization: prometheus\n samplingRate: 1.0\n extended: detailed\n\n listenAddress: 0.0.0.0:9000\n clusterListenAddress: 0.0.0.0:9001\n httpNodeListenAddress: 0.0.0.0:9002\n httpClusterListenAddress: 0.0.0.0:9003\n debugListenAddress: 0.0.0.0:9004\n\n hostID:\n resolver: hostname\n\n client:\n writeConsistencyLevel: majority\n readConsistencyLevel: unstrict_majority\n\n gcPercentage: 100\n\n writeNewSeriesAsync: true\n writeNewSeriesLimitPerSecond: 1048576\n writeNewSeriesBackoffDuration: 2ms\n\n bootstrap:\n fs:\n numProcessorsPerCPU: 0.125\n commitlog:\n returnUnfulfilledForCorruptCommitLogFiles: false\n\n commitlog:\n flushMaxBytes: 524288\n flushEvery: 1s\n queue:\n calculationType: fixed\n size: 2097152\n\n fs:\n filePathPrefix: /var/lib/m3db\n\n config:\n service:\n env: default_env\n zone: embedded\n service: m3db\n cacheDir: /var/lib/m3kv\n etcdClusters:\n - zone: embedded\n endpoints:\n - http://etcd-0.etcd:2379\n - http://etcd-1.etcd:2379\n - http://etcd-2.etcd:2379\n"
}
}

Expand Down
4 changes: 1 addition & 3 deletions scripts/comparator/m3query.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
listenAddress:
type: "config"
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

backend: grpc

Expand Down
4 changes: 1 addition & 3 deletions scripts/development/m3_stack/m3collector.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
listenAddress:
type: config
value: 0.0.0.0:7206
listenAddress: 0.0.0.0:7206

metrics:
scope:
Expand Down
3 changes: 1 addition & 2 deletions scripts/development/m3_stack/m3coordinator-aggregator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
3 changes: 1 addition & 2 deletions scripts/development/m3_stack/m3coordinator-standard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
5 changes: 0 additions & 5 deletions scripts/development/m3_stack/m3dbnode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,6 @@ db:
writeNewSeriesBackoffDuration: 2ms

bootstrap:
bootstrappers:
- filesystem
- peers
- commitlog
- uninitialized_topology
commitlog:
returnUnfulfilledForCorruptCommitLogFiles: false

Expand Down
16 changes: 8 additions & 8 deletions scripts/development/m3_stack/start_m3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ else
fi

echo "Initializing namespaces"
curl -vvvsSf -X POST localhost:7201/api/v1/namespace -d '{
curl -vvvsSf -X POST localhost:7201/api/v1/services/m3db/namespace -d '{
"name": "metrics_0_30m",
"options": {
"bootstrapEnabled": true,
Expand Down Expand Up @@ -202,7 +202,7 @@ curl -vvvsSf -X POST localhost:7201/api/v1/namespace -d '{
}
}
}'
curl -vvvsSf -X POST localhost:7201/api/v1/namespace -d '{
curl -vvvsSf -X POST localhost:7201/api/v1/services/m3db/namespace -d '{
"name": "metrics_30s_24h",
"options": {
"bootstrapEnabled": true,
Expand Down Expand Up @@ -239,13 +239,13 @@ curl -vvvsSf -X POST localhost:7201/api/v1/namespace -d '{
echo "Done initializing namespaces"

echo "Validating namespace"
[ "$(curl -sSf localhost:7201/api/v1/namespace | jq .registry.namespaces.metrics_0_30m.indexOptions.enabled)" == true ]
[ "$(curl -sSf localhost:7201/api/v1/namespace | jq .registry.namespaces.metrics_30s_24h.indexOptions.enabled)" == true ]
[ "$(curl -sSf localhost:7201/api/v1/services/m3db/namespace | jq .registry.namespaces.metrics_0_30m.indexOptions.enabled)" == true ]
[ "$(curl -sSf localhost:7201/api/v1/services/m3db/namespace | jq .registry.namespaces.metrics_30s_24h.indexOptions.enabled)" == true ]
echo "Done validating namespace"

echo "Initializing topology"
if [[ "$USE_MULTI_DB_NODES" = true ]] ; then
curl -vvvsSf -X POST localhost:7201/api/v1/placement/init -d '{
curl -vvvsSf -X POST localhost:7201/api/v1/services/m3db/placement/init -d '{
"num_shards": 64,
"replication_factor": 3,
"instances": [
Expand Down Expand Up @@ -279,7 +279,7 @@ if [[ "$USE_MULTI_DB_NODES" = true ]] ; then
]
}'
else
curl -vvvsSf -X POST localhost:7201/api/v1/placement/init -d '{
curl -vvvsSf -X POST localhost:7201/api/v1/services/m3db/placement/init -d '{
"num_shards": 64,
"replication_factor": 1,
"instances": [
Expand All @@ -297,12 +297,12 @@ else
fi

echo "Validating topology"
[ "$(curl -sSf localhost:7201/api/v1/placement | jq .placement.instances.m3db_seed.id)" == '"m3db_seed"' ]
[ "$(curl -sSf localhost:7201/api/v1/services/m3db/placement | jq .placement.instances.m3db_seed.id)" == '"m3db_seed"' ]
echo "Done validating topology"

echo "Waiting until shards are marked as available"
ATTEMPTS=100 TIMEOUT=2 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:7201/api/v1/placement | grep -c INITIALIZING)" -eq 0 ]'
'[ "$(curl -sSf 0.0.0.0:7201/api/v1/services/m3db/placement | grep -c INITIALIZING)" -eq 0 ]'

if [[ "$USE_AGGREGATOR" = true ]]; then
echo "Initializing M3Coordinator topology"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7202"
listenAddress: 0.0.0.0:7202

logging:
level: info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7202"
listenAddress: 0.0.0.0:7202

logging:
level: info
Expand Down
3 changes: 1 addition & 2 deletions scripts/docker-integration-tests/carbon/m3coordinator.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
20 changes: 10 additions & 10 deletions scripts/docker-integration-tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function setup_single_m3db_node_long_namespaces {

echo "Wait for API to be available"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq ".namespaces | length")" == "0" ]'

echo "Adding placement and agg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/create -d '{
Expand All @@ -76,7 +76,7 @@ function setup_single_m3db_node_long_namespaces {

echo "Wait until placement is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'

wait_for_namespaces

Expand All @@ -88,7 +88,7 @@ function setup_single_m3db_node_long_namespaces {

echo "Wait until agg2d namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.agg2d.indexOptions.enabled)" == true ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq .registry.namespaces.agg2d.indexOptions.enabled)" == true ]'


echo "Wait until bootstrapped"
Expand All @@ -106,7 +106,7 @@ function setup_single_m3db_node {

echo "Wait for API to be available"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq ".namespaces | length")" == "0" ]'

echo "Adding placement and agg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/create -d '{
Expand All @@ -129,7 +129,7 @@ function setup_single_m3db_node {

echo "Wait until placement is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/placement | jq .placement.instances.'${dbnode_id}'.id)" == \"'${dbnode_id}'\" ]'

wait_for_namespaces

Expand All @@ -150,7 +150,7 @@ function setup_two_m3db_nodes {

echo "Wait for API to be available"
ATTEMPTS=100 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq ".namespaces | length")" == "0" ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq ".namespaces | length")" == "0" ]'

echo "Adding placement and agg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/create -d '{
Expand Down Expand Up @@ -181,7 +181,7 @@ function setup_two_m3db_nodes {

echo "Wait until placement is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/placement | jq .placement.instances.'"${dbnode_id_1}"'.id)" == \"'"${dbnode_id_1}"'\" ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/placement | jq .placement.instances.'"${dbnode_id_1}"'.id)" == \"'"${dbnode_id_1}"'\" ]'

wait_for_namespaces

Expand All @@ -197,7 +197,7 @@ function wait_for_namespaces {

echo "Wait until agg namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.agg.indexOptions.enabled)" == true ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq .registry.namespaces.agg.indexOptions.enabled)" == true ]'

echo "Adding unagg namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/database/namespace/create -d '{
Expand All @@ -207,7 +207,7 @@ function wait_for_namespaces {

echo "Wait until unagg namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.unagg.indexOptions.enabled)" == true ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq .registry.namespaces.unagg.indexOptions.enabled)" == true ]'

echo "Adding coldWritesRepairAndNoIndex namespace"
curl -vvvsSf -X POST 0.0.0.0:${coordinator_port}/api/v1/services/m3db/namespace -d '{
Expand All @@ -233,6 +233,6 @@ function wait_for_namespaces {

echo "Wait until coldWritesRepairAndNoIndex namespace is init'd"
ATTEMPTS=10 MAX_TIMEOUT=4 TIMEOUT=1 retry_with_backoff \
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/namespace | jq .registry.namespaces.coldWritesRepairAndNoIndex.coldWritesEnabled)" == true ]'
'[ "$(curl -sSf 0.0.0.0:'"${coordinator_port}"'/api/v1/services/m3db/namespace | jq .registry.namespaces.coldWritesRepairAndNoIndex.coldWritesEnabled)" == true ]'
}

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
coordinator:
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down Expand Up @@ -50,11 +49,6 @@ db:
writeNewSeriesBackoffDuration: 2ms

bootstrap:
# Intentionally disable peers bootstrapper to ensure it doesn't interfere with test.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to preserve this behavior, maybe we add an Enabled flag to each bootstrap type (e.g. under peers, commitlog, etc.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, the tests passed w/o the peers bootstrapper disabled? I think it's prob fine if the docker integration tests passed.

For integration tests we explicitly configure the bootstrappers we need.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah so all the integration tests passed with just the standard ones included (including peers). So I assume it is fine? I'm not sure what the original reason was for excluding them given things are passing.

However, since we removed the bootstrappers list from the config, we can no longer select a subset of bootstrappers to run for specific integration tests. So I think if we do end up needing that flexibility, we can just add in an Enabled or Disabled flag to each of the types under the bootstrap config section. Does that make sense?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we can do it in integration tests, we can make it a code hook only rather than a config hook if we do end up needing to disable bootstrappers?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like the integration tests all work w/ standard bootstrappers enabled so I'd vote we keep everything as-is since it is more comprehensive testing / less special casing

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to less special casing.

bootstrappers:
- filesystem
- commitlog
- uninitialized_topology
commitlog:
returnUnfulfilledForCorruptCommitLogFiles: false

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
listenAddress:
value: "0.0.0.0:7201"
listenAddress: 0.0.0.0:7201

logging:
level: info
Expand Down
Loading