File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -80,24 +80,27 @@ run_graph_node() {
8080}
8181
8282start_query_node () {
83+ # Query nodes are never the block ingestor
8384 export DISABLE_BLOCK_INGESTOR=true
8485 run_graph_node
8586}
8687
8788start_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
9792start_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:
You can’t perform that action at this time.
0 commit comments