Skip to content

Commit

Permalink
docker: Restore old behvior around BLOCK_INGESTOR
Browse files Browse the repository at this point in the history
PR #3688 introduced a
regression where the setting of BLOCK_INGESTOR had to be changed from
unmangled to mangled.

Fixes #3936
  • Loading branch information
lutter committed Sep 20, 2022
1 parent 27c5348 commit 92055df
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions docker/start
Original file line number Diff line number Diff line change
Expand Up @@ -80,24 +80,27 @@ run_graph_node() {
}

start_query_node() {
# Query nodes are never the block ingestor
export DISABLE_BLOCK_INGESTOR=true
run_graph_node
}

start_index_node() {
# Only the index node with the name set in BLOCK_INGESTOR should ingest
# blocks
if [[ ${node_id} != "${BLOCK_INGESTOR}" ]]; then
export DISABLE_BLOCK_INGESTOR=true
fi

run_graph_node
}

start_combined_node() {
run_graph_node
}

# Only the index node with the name set in BLOCK_INGESTOR should ingest
# blocks. For historical reasons, that name is set to the unmangled version
# of `node_id` and we need to check whether we are the block ingestor
# before possibly mangling the node_id.
if [[ ${node_id} != "${BLOCK_INGESTOR}" ]]; then
export DISABLE_BLOCK_INGESTOR=true
fi

# Allow operators to opt out of legacy character
# restrictions on the node ID by setting enablement
# variable to a non-zero length string:
Expand Down

0 comments on commit 92055df

Please sign in to comment.