[JAVA-2108] createIndex command failure on duplicate key incorrectly parses error message Created: 05/Feb/16 Updated: 16/Feb/18 Resolved: 05/Feb/16 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Command Operations |
| Affects Version/s: | 2.13.0 |
| Fix Version/s: | 2.14.2 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | John Morales | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
|
When parsing out the error message of a response to creating a unique index, the message will be "errmsg" instead of "err". Quick reproduction test case:
Note this does not appear to affect 3.x Java driver versions. |
| Comments |
| Comment by Githook User [ 16/Feb/18 ] |
|
Author: {'email': 'jeff.yemin@10gen.com', 'name': 'Jeff Yemin', 'username': 'jyemin'}Message: Necessary since one of these can come from either a getlasterror command, which puts the error in the err field, or a normal command like createIndexes, which puts the error in the errmsg field. |
| Comment by Jeffrey Yemin [ 31/Mar/16 ] |
|
2.14.2 has been released with a fix for this bug. |
| Comment by Githook User [ 05/Feb/16 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Necessary since one of these can come from either a getlasterror command, which puts the error in the err field, or a normal command like createIndexes, which puts the error in the errmsg field. |
| Comment by Githook User [ 05/Feb/16 ] |
|
Author: {u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}Message: Necessary since one of these can come from either a getlasterror command, which puts the error in the err field, or a normal command like createIndexes, which puts the error in the errmsg field. |