-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Describe the bug
On startup, the synchost feature can download the in-memory data from a sister node. This should not happen if the data has a different structure, such as if HLLBits is changed.
Package: wforce-2.0.1-2.x86_64
To Reproduce
Steps to reproduce the behavior:
- Set up 2-node cluster with stringstatsDB that has an HLL field, and synchost definitions with minimal required uptime.
- Cause records to be added to the HLL stringstatsDB
- Modify one node to have setHLLBits(8)
- Restart that node.
- Attempt to have records updated in the HLL stringstatsDB
Expected behavior
Since the stringstatsDB is now a different format, the restarting node should spot this, and not request the data from the existing node butinstead start with an empty database.
Actual behaviour
Data is downloaded into memory from other node even though it does not match the expected format. When the data is actually accessed in operation, it produces an error.
{"status":"failure", "reason":"number of registers doesn't match: 256 != 64"}
OS:
- OS: Centos
- Version 7
Additional context
This problem may also occur if new fields are added or other fields changed. Maybe have a version code created by a hash of the database definition checked as part of the sync handshake?