[SERVER-6999] Embedded "dot-notation" fields broken for tag based balancing Created: 10/Sep/12 Updated: 06/Dec/22 Resolved: 12/Oct/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.2.0 |
| Fix Version/s: | 3.6.0-rc0 |
| Type: | Task | Priority: | Critical - P2 |
| Reporter: | Scott Hernandez (Inactive) | Assignee: | [DO NOT USE] Backlog - Sharding Team |
| Resolution: | Done | Votes: | 18 |
| Labels: | PM497, sharding, tagging | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||
| Assigned Teams: |
Sharding
|
||||||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||||||
| Sprint: | 2.3.0 | ||||||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||||||
| Description |
|
| Comments |
| Comment by Nicholas Zolnierz [ 12/Oct/17 ] | ||||||||||||||||||||||
|
Fixed as part of | ||||||||||||||||||||||
| Comment by Asya Kamsky [ 09/Oct/17 ] | ||||||||||||||||||||||
|
It might work now as a side effect of changes in | ||||||||||||||||||||||
| Comment by Asya Kamsky [ 09/Oct/17 ] | ||||||||||||||||||||||
|
Just tested this in the latest (3.5.13) and it works fine now - I believe the shell helper now works correctly. I believe this ticket can be closed.
| ||||||||||||||||||||||
| Comment by Xavier Vdb [ 24/Apr/14 ] | ||||||||||||||||||||||
|
same issue with mongo 2.6 i have solved the problem with the same fix of Scott, without rewriting 'sh.addTagRange' method :
| ||||||||||||||||||||||
| Comment by Scott Hernandez (Inactive) [ 29/Dec/12 ] | ||||||||||||||||||||||
|
Quick fix is to bypass validation in the shell for inserts. The better solution is to move these to commands which can be used by all drivers/languages as specified in this issue:
The reason this works in python will depend on the version and level of validation. It should not work as that is not valid and should be caught by all drivers/languages, but clearly your python version let it slip by. | ||||||||||||||||||||||
| Comment by Alon Horev [ 26/Oct/12 ] | ||||||||||||||||||||||
|
This is interesting, running addTagRange's code from pymongo doesn't result in an error. , {ns:ns, min:min, max:max, tag:tag}, true); now for the question: what's the difference between running this update from the shell vs. pymongo? how come pymongo succeeds and the shell doesn't? |