[SERVER-8628] collmod expireAfterSeconds should correctly handle bad keyPattern and unrecognized fields Created: 20/Feb/13 Updated: 08/Sep/20 Resolved: 02/Jun/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, TTL |
| Affects Version/s: | None |
| Fix Version/s: | 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gary Murakami | Assignee: | Gregory Noma |
| Resolution: | Done | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Minor Change | ||||
| Operating System: | ALL | ||||
| Sprint: | Execution Team 2020-06-15 | ||||
| Participants: | |||||
| Description |
|
The collmod command should handle the following errors more gracefully.
(2) an unrecognized field in the index should fail with message "unrecognized index field (it currently ignores the field and carries on silently)
|
| Comments |
| Comment by Githook User [ 02/Jun/20 ] |
|
Author: {'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}Message: |
| Comment by Gary Murakami [ 20/Feb/13 ] |
|
This issue is minor/trivial, only error reporting/handling. Please do not hold up the 2.4 release. |
| Comment by Gary Murakami [ 20/Feb/13 ] |
|
Ruby code snippets: (1) { collMod: @coll_name, index: { keyPattern: 'bad', expireAfterSeconds: @new_value }} (2) { collMod: @coll_name, index: { keyPattern: @key_pattern, expireAfterSeconds: @new_value, unknown: 1 }} @coll_name, @new_value and @key_pattern are Ruby member variables - you can assume that acceptable values are substituted. |