Skip to content

fix: 18571: Current path range should be respected when path to hash and path to KV indices are restored #18592

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

Merged
merged 2 commits into from
Apr 2, 2025

Conversation

artemananiev
Copy link
Contributor

Fix summary:

  • When a MerkleDb data source instance is created from existing data files, and path to hash / path to KV indices are restored, leaf path range is taken into consideration. Old data files may contain entries outside the current path range, now these entries are ignored

  • Testing: there is an existing test to check that MerkleDb indices can be restored from data files. This test is improved, so it checks multiple different path ranges, not just one

Fixes: #18571
Signed-off-by: Artem Ananev [email protected]

…and path to KV indices are restored

Signed-off-by: Artem Ananev <[email protected]>
@artemananiev artemananiev added this to the v0.62 milestone Apr 1, 2025
@artemananiev artemananiev self-assigned this Apr 1, 2025
@artemananiev artemananiev requested a review from a team April 1, 2025 17:37
Signed-off-by: Artem Ananev <[email protected]>
@artemananiev artemananiev merged commit 7b1f96e into main Apr 2, 2025
41 checks passed
@artemananiev artemananiev deleted the 18571-M-merkledb-restore-index-paths branch April 2, 2025 00:08
netopyr added a commit that referenced this pull request Apr 2, 2025
* main:
  chore: prepare consensus event creator (#18585)
  fix: airdrop TCK issues fixes (#18582)
  feat: Long Term Schedule Transaction Support For DAB transactions (#18539)
  test: Add Ingest workflow checks HAPI tests (#18382)
  fix: 18571: Current path range should be respected when path to hash and path to KV indices are restored (#18592)
  chore: upgrade PBJ to v0.10.3 (#18597)
  chore: update new git-semver version (#18596)
  chore: 13214 custom fee assessor v3 (#18503)

Signed-off-by: Michael Heinrichs <[email protected]>
netopyr added a commit that referenced this pull request Apr 7, 2025
* main:
  chore: prepare consensus event creator (#18585)
  fix: airdrop TCK issues fixes (#18582)
  feat: Long Term Schedule Transaction Support For DAB transactions (#18539)
  test: Add Ingest workflow checks HAPI tests (#18382)
  fix: 18571: Current path range should be respected when path to hash and path to KV indices are restored (#18592)
  chore: upgrade PBJ to v0.10.3 (#18597)
  chore: update new git-semver version (#18596)
  chore: 13214 custom fee assessor v3 (#18503)

# Conflicts:
#	platform-sdk/swirlds-platform-core/src/main/java/module-info.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Current path range should be respected when path to hash and path to KV indices are restored
3 participants