Repository navigation
Fix deferred point count across multiple shards - #8496
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe change updates Collection::info merge logic to destructure incoming Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@lib/collection/src/collection/collection_ops.rs`:
- Around line 367-371: The current accumulation skips values when
deferred_points is None on the first shard; change the logic in the block
handling deferred_points so that if deferred_points is None but the incoming
update_queue has deferred_points (i.e. update_queue.map(|i|
i.deferred_points).is_some()), you initialize deferred_points to Some(0) before
adding; then always add the incoming value using update_queue.map(|i|
i.deferred_points.unwrap_or_default()).unwrap_or(0) (or equivalent) so
heterogeneous Some/None across shards are correctly accumulated; locate the code
around deferred_points and update_queue in collection_ops.rs and modify that
branch to set deferred_points = Some(0) when needed and then perform the +=
accumulation.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8e243a12-bec9-4027-8414-fa2858df4ee7
📒 Files selected for processing (1)
lib/collection/src/collection/collection_ops.rs
* Fix deferred point count across multiple shards * Count def-points correctly if first shard has no def-points
* Fix deferred point count across multiple shards * Count def-points correctly if first shard has no def-points
This PR fixes accumulation of deferred point counts across multiple shards.