Skip to content

Commit 9e03a50

Browse files
lutterneysofu
authored andcommitted
docker: Restore old behvior around BLOCK_INGESTOR
PR #3688 introduced a regression where the setting of BLOCK_INGESTOR had to be changed from unmangled to mangled. Fixes #3936
1 parent a07c421 commit 9e03a50

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docker/start

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,27 @@ run_graph_node() {
8080
}
8181

8282
start_query_node() {
83+
# Query nodes are never the block ingestor
8384
export DISABLE_BLOCK_INGESTOR=true
8485
run_graph_node
8586
}
8687

8788
start_index_node() {
88-
# Only the index node with the name set in BLOCK_INGESTOR should ingest
89-
# blocks
90-
if [[ ${node_id} != "${BLOCK_INGESTOR}" ]]; then
91-
export DISABLE_BLOCK_INGESTOR=true
92-
fi
93-
9489
run_graph_node
9590
}
9691

9792
start_combined_node() {
9893
run_graph_node
9994
}
10095

96+
# Only the index node with the name set in BLOCK_INGESTOR should ingest
97+
# blocks. For historical reasons, that name is set to the unmangled version
98+
# of `node_id` and we need to check whether we are the block ingestor
99+
# before possibly mangling the node_id.
100+
if [[ ${node_id} != "${BLOCK_INGESTOR}" ]]; then
101+
export DISABLE_BLOCK_INGESTOR=true
102+
fi
103+
101104
# Allow operators to opt out of legacy character
102105
# restrictions on the node ID by setting enablement
103106
# variable to a non-zero length string:

0 commit comments

Comments
 (0)