You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When loading from network history across DB schema version, the data-node will migrate through the schema versions as it loads history segments.
For example if history segment n has schema version 10 and history segment n+1 has schema version 11, then when loading the segments the flow is as follows:
migrate the schema from versions 0 -> 10
load history segment n
migrate the schema from version 10 -> 11
load history segment n+1
The problem is that if a protocol upgrade has just happened, and we are using the latest code version but the last network history segment we find to pull is from the older version, the data node will still start successfully. This means that the schema version will mismatch the sqlstore queries and weird failures will occurr.
Observed behaviour
If the DB schema is older than it should be for whatever reason, strange errors can occur when making queries.
Expected behaviour
The data node should not start if there is a schema mismatch.
Steps to reproduce
1. Submit `xyz` transaction
2. With this payload
3. Query `abc` API
4. Observe the error
Software version
develop
Failing test
No response
Jenkins run
No response
Configuration used
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered:
Problem encountered
When loading from network history across DB schema version, the data-node will migrate through the schema versions as it loads history segments.
For example if history segment
n
has schema version10
and history segmentn+1
has schema version11
, then when loading the segments the flow is as follows:0 -> 10
n
10 -> 11
n+1
The problem is that if a protocol upgrade has just happened, and we are using the latest code version but the last network history segment we find to pull is from the older version, the data node will still start successfully. This means that the schema version will mismatch the sqlstore queries and weird failures will occurr.
Observed behaviour
If the DB schema is older than it should be for whatever reason, strange errors can occur when making queries.
Expected behaviour
The data node should not start if there is a schema mismatch.
Steps to reproduce
Software version
develop
Failing test
No response
Jenkins run
No response
Configuration used
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: