Welcome to the new MongoDB Feedback Portal!
{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.
We’ve upgraded our feedback system to better capture, track, and act on your feedback. Here’s what you need to know:
|
What problem are you trying to solve? Focus on the what and why of the need you have, not the how you'd like it solved. |
CDC pipelines that read change streams on sharded collections often key target rows by Currently, how this is reported depends on whether the new shard key belongs to the same shard:
In the same-shard case, an upsert-based pipeline either leaves a stale row under the old key or writes new values under the wrong key. The same logical operation produces different event shapes depending on chunk placement. Placement changes over time with balancing and migrations, so applications reading the change stream must handle both shapes. |
|
What would you like to see happen? Describe the desired outcome or enhancement. |
Provide an opt-in change stream mode that emits shard key–changing updates as This would give applications reading change streams a consistent representation of downstream key changes, independent of chunk placement. The An implementation that relies on post-images would already remove the custom split logic from every pipeline. Ideally, this would also work without requiring collection-wide pre-image capture solely to handle rare shard key changes. For example, same-shard shard key updates could be written as delete + insert, the way cross-shard updates already are. |
|
Why is this important to you or your team? Explain how the request adds value or solves a business need. |
We operate a CDC platform that replicates many sharded collections for internal teams. If a shard key–changing update is not handled correctly, the target silently keeps stale or mis-keyed rows. Nothing fails, so the drift goes unnoticed until someone finds inconsistent data. To prevent this today, we either restrict shard key updates on CDC-enabled collections, which constrains application teams, or maintain custom handling in the pipeline for an event shape that depends on chunk placement. Emitting shard key–changing updates consistently as delete + insert would let us support shard key updates without restricting them or relying on custom handling. |
What steps, if any, are you taking today to manage this problem? |
We enable
|