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

rocksdb: replace recursion from prefix iterator with a loop #2325

Merged
merged 4 commits into from
Dec 22, 2023

Conversation

tzemanovic
Copy link
Member

@tzemanovic tzemanovic commented Dec 21, 2023

Describe your changes

Also fixed replay protection prefix iterator that was causing this recursion stack size to grow with every tx. To help avoid these issues in future, I also added tracing::warn for when we get an unmatched prefix (which falls back to go to the next iterator item).

Indicate on which release or other PRs this topic is based on

0.28.1

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@tzemanovic tzemanovic marked this pull request as ready for review December 21, 2023 15:53
@tzemanovic tzemanovic requested a review from Fraccaman December 21, 2023 15:53
tzemanovic added a commit that referenced this pull request Dec 21, 2023
@Fraccaman Fraccaman mentioned this pull request Dec 21, 2023
2 tasks
tzemanovic added a commit that referenced this pull request Dec 22, 2023
brentstone added a commit that referenced this pull request Dec 22, 2023
* tomas/db-rm-recursion:
  fixup! changelog: add #2325
  fixup! fix replay_protection iterator to avoid unmatched keys
  fixup! fix replay_protection iterator to avoid unmatched keys
  changelog: add #2325
  fix replay_protection iterator to avoid unmatched keys
  rocksdb: warn on unmatched prefix in iterator
  rocksdb: replace recursion from prefix iterator with a loop
  ci: update mold
  ci: split integration and unit
@brentstone brentstone force-pushed the tomas/db-rm-recursion branch from 2377d67 to 2683a68 Compare December 22, 2023 18:07
@brentstone brentstone merged commit a73ddb5 into main Dec 22, 2023
12 of 15 checks passed
@brentstone brentstone deleted the tomas/db-rm-recursion branch December 22, 2023 23:44
brentstone added a commit that referenced this pull request Dec 23, 2023
Namada 0.28.2 is a patch release that fixes a stack overflow issue for nodes.

* tag 'v0.28.2':
  Namada 0.28.2
  changelog: add #2325
  fix replay_protection iterator to avoid unmatched keys
  rocksdb: warn on unmatched prefix in iterator
  rocksdb: replace recursion from prefix iterator with a loop
  update hermes
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.

2 participants