Skip to content

Commit 6bb8826

Browse files
More debugging logs and explicitly set TOPOLOGY FLAGS to see if it makes a difference
Signed-off-by: Rohit Nayak <[email protected]>
1 parent a8881ba commit 6bb8826

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

examples/backups/restart_tablets.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
source ../common/backup-env.sh
2121

22+
echo "Topology flags at start of restart_tablets.sh: $TOPOLOGY_FLAGS"
23+
2224
echo "=============================== This is version 23 restart tablets ==============================="
2325
for i in 100 101 102; do
2426
CELL=zone1 TABLET_UID=$i ../common/backup-scripts/mysqlctl-up.sh

examples/common/backup-scripts/consul-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ sleep 5
4343
echo "add ${cell} CellInfo"
4444
set +e
4545
# shellcheck disable=SC2086
46-
command vtctldclient --server internal --topo-implementation consul --topo-global-server-address "${CONSUL_SERVER}:${consul_http_port}" AddCellInfo \
46+
command vtctldclient --server internal --topo_implementation consul --topo_global_server_address "${CONSUL_SERVER}:${consul_http_port}" AddCellInfo \
4747
--root "/vitess/${cell}" \
4848
--server-address "${CONSUL_SERVER}:${consul_http_port}" \
4949
"${cell}"

examples/common/backup-scripts/vttablet-up.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ if [[ "${uid: -1}" -gt 1 ]]; then
3434
fi
3535

3636
echo "Starting v23 backup vttablet for $alias..."
37+
echo "Topology flags inherited at start of v23 backup vttablet: $TOPOLOGY_FLAGS"
38+
export TOPOLOGY_FLAGS="--topo_implementation etcd2 --topo_global_server_address $ETCD_SERVER --topo_global_root /vitess/global"
39+
echo "Topology flags at start of v23 backup vttablet, after explicitly setting: $TOPOLOGY_FLAGS"
40+
3741

3842
# shellcheck disable=SC2086
3943
vttablet \

examples/common/backup-scripts/zk-up.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ echo "Started zk servers."
5151
# Add the CellInfo description for the $CELL cell.
5252
# If the node already exists, it's fine, means we used existing data.
5353
set +e
54-
command vtctldclient --server internal --topo-implementation zk2 --topo-global-server-address "${ZK_SERVER}" AddCellInfo \
54+
command vtctldclient --server internal --topo_implementation zk2 --topo_global_server_address "${ZK_SERVER}" AddCellInfo \
5555
--root "/vitess/${cell}" \
5656
--server-address "${ZK_SERVER}" \
5757
"${cell}"

0 commit comments

Comments
 (0)