-
Notifications
You must be signed in to change notification settings - Fork 244
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
Problem: slices in ReadOptions is freed by gc while referenced in rocksdb #1751
Conversation
WalkthroughThis pull request introduces a new entry in the CHANGELOG.md under the "Bug Fixes" section, detailing a fix for the versiondb related to the management of read options. Additionally, the Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1751 +/- ##
===========================================
+ Coverage 16.87% 35.58% +18.70%
===========================================
Files 72 126 +54
Lines 6163 11924 +5761
===========================================
+ Hits 1040 4243 +3203
- Misses 5000 7256 +2256
- Partials 123 425 +302
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
gomod2nix.toml (1)
177-178
: Dependency Update forgithub.com/cosmos/cosmos-sdk
The module version and hash have been updated to
"v0.43.0-beta1.0.20250224030921-39d7b26bbb97"
and"sha256-JVGXvBx9OXnki4fjio/iG1QdclifPxL+YXvaMdVPi5s="
respectively. Ensure that this update is consistent with the changes applied in thego.mod
file and that the new version is fully compatible—especially considering any resource management or API changes related to read options.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
go.sum
is excluded by!**/*.sum
📒 Files selected for processing (2)
go.mod
(1 hunks)gomod2nix.toml
(1 hunks)
✅ Files skipped from review due to trivial changes (1)
- go.mod
⏰ Context from checks skipped due to timeout of 90000ms (17)
- GitHub Check: integration_tests (gas)
- GitHub Check: integration_tests (slow)
- GitHub Check: integration_tests (upgrade)
- GitHub Check: integration_tests (gov)
- GitHub Check: integration_tests (ica)
- GitHub Check: integration_tests (ibc_update_client)
- GitHub Check: build (macos-14)
- GitHub Check: integration_tests (ibc_timeout)
- GitHub Check: unittest
- GitHub Check: integration_tests (ibc_rly_gas)
- GitHub Check: build (macos-latest)
- GitHub Check: integration_tests (ibc_rly_evm)
- GitHub Check: integration_tests (ibc)
- GitHub Check: integration_tests (unmarked)
- GitHub Check: Run golangci-lint
- GitHub Check: build (ubuntu-latest)
- GitHub Check: Analyze (go)
…ksdb (crypto-org-chain#1751) * Problem: no deallocate read options * doc * sync deps
…ksdb (crypto-org-chain#1751) * Problem: no deallocate read options * doc * sync deps
* Problem: unable to resolve octokit action v2.0.0 (#1750) for more info, https://github.com/crypto-org-chain/cronos/actions/runs/13386690642 * Problem: conflict of index uniqueness constrain violation on trace api (#1753) * Problem: conflict of index uniqueness constrain violation on trace api * test * update deps * bump go * Problem: slices in ReadOptions is freed by gc while referenced in rocksdb (#1751) * Problem: no deallocate read options * doc * sync deps * add doc * Problem: ReadOptions mutated by reference release in iterator fix is not included * deps
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit