[SERVER-79974] Time-series bucket change stream `shardCollection` events translate shardKey fields Created: 14/Aug/23 Updated: 29/Oct/23 Resolved: 08/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0, 7.0.2, 7.1.0-rc2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Felipe Gasper | Assignee: | Tommaso Tocci |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Sharding EMEA
|
||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Backport Requested: |
v7.1, v7.0
|
||||||||||||||||||||
| Sprint: | Sharding EMEA 2023-08-21, Sharding EMEA 2023-09-04, Sharding EMEA 2023-09-18 | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
ProblemAgainst v7 and latest I see this in a `shardCollection` event:
Note the translated, “logical” field name. Against v6, though, I see `control.min.mytimefield` and `meta` as the shardKey field names. Apparently that’s correct, per arun.banala@mongodb.com. Solution & Acceptance Criteriav6, v7, and latest should all behave as expected. ImpactThis will impact REP-35. I’m going to try to work around it for now by recognizing logical field names & converting them to the bucket field names. |
| Comments |
| Comment by Githook User [ 08/Sep/23 ] | ||||||||||||||||||||||||||
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit 54db4ee7305ab97c25c2afeee73189e438476cd4) | ||||||||||||||||||||||||||
| Comment by Githook User [ 08/Sep/23 ] | ||||||||||||||||||||||||||
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: (cherry picked from commit 54db4ee7305ab97c25c2afeee73189e438476cd4) | ||||||||||||||||||||||||||
| Comment by Githook User [ 07/Sep/23 ] | ||||||||||||||||||||||||||
|
Author: {'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}Message: | ||||||||||||||||||||||||||
| Comment by Felipe Gasper [ 18/Aug/23 ] | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| Comment by Felipe Gasper [ 15/Aug/23 ] | ||||||||||||||||||||||||||
|
Reproduction against v7:
|