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

Fix two-stage processing when flat node file is used #2303

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joto
Copy link
Collaborator

@joto joto commented Feb 13, 2025

This is an additional fix to the fix in 8d1a55e. If a flat node file is used, nodes are not stored in the database (unless --middle-with-nodes is specified, but also then only nodes with tags are stored in the database).

There are two problems here:

  1. The "get_node" prepared statement was not prepared in this case, so it fails when executes. This is fixed by only executing that statement if m_store_options.nodes is set in the middle.
  2. If there is no node in the database, there might still be one in the flat node file. So we need to try this and create the node from the information in there. (It will only have the node id and location in it, but at least we get the location.)

The second commit fixes essentially the same problem for non-slim mode. In that case we look into the (disk and/or ram) caches for the node location if the node is not in our object store.

joto added 2 commits February 13, 2025 10:00
This is an additional fix to the fix in 8d1a55e. If a flat node file is
used, nodes are not stored in the database (unless --middle-with-nodes
is specified, but also then only nodes with tags are stored in the
database).

There are two problems here:

1. The "get_node" prepared statement was not prepared in this case,
   so it fails when executes. This is fixed by only executing that
   statement if m_store_options.nodes is set in the middle.
2. If there is no node in the database, there might still be one
   in the flat node file. So we need to try this and create the
   node from the information in there. (It will only have the node
   id and location in it, but at least we get the location.)

This commit contains both fixes.
Another addition to the same issue as in the previews commit: In
non-slim mode look for node locations in the (on disk and ram)
caches and create a node from there is a node is requested for
further processing in two-stage processing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant