fix standby crash on mem full#204
Conversation
WalkthroughModified Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
include/cc/object_cc_map.h (1)
1840-1840: Optional: Consider removing the now-redundant assertion.After the nullptr check at lines 1835-1839,
cceis guaranteed to be non-null at this point, making the assertion always true (dead code). While it doesn't cause any harm, you might consider removing it for clarity.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
include/cc/object_cc_map.h(1 hunks)
🔇 Additional comments (1)
include/cc/object_cc_map.h (1)
1835-1839: LGTM! Fix prevents standby crash on OOM.The nullptr check correctly handles the case where
FindEmplacefails to allocate a new CCE due to memory exhaustion. By enqueuing the request to the memory-full wait list and returning false, the request will be retried once capacity becomes available. This pattern is consistent with other handlers in this file (e.g.,ApplyCcat lines 430-456,ReplayLogCcat lines 2196-2205).
Here are some reminders before you submit the pull request
fixes eloqdb/tx_service#issue_id./mtr --suite=mono_main,mono_multi,mono_basicSummary by CodeRabbit