[JAVA-4419] Error labels are not added to MongoWriteConcernException Created: 01/Dec/21 Updated: 28/Oct/23 Resolved: 02/Dec/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Command Operations |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeffrey Yemin | Assignee: | Jeffrey Yemin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Documentation Changes: | Not Needed |
| Description |
|
The error labels are at the top level of the response document, and the driver is assuming that they are embedded in the writeConcernError document. The fix is to ensure that error labels at the top level are properly added to MongoWriteConcernException. Currently the code for this is not consolidated, but to avoid API changes in MongoWriteConcernException we won't centralize it there as part of this change. |
| Comments |
| Comment by Githook User [ 02/Dec/21 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Add error labels to MongoWriteConcernException (#834) The error labels are at the top level of the response
|
| Comment by Githook User [ 02/Dec/21 ] |
|
Author: {'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}Message: Add error labels to MongoWriteConcernException (#834) The error labels are at the top level of the response
|