[JAVA-2922] MongoCollection.insertOne throws NullPointerException with WriteConcern.UNACKNOWLEDGED & retryWrites=true Created: 07/Aug/18 Updated: 28/Oct/23 Resolved: 14/Aug/18 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | Write Operations |
| Affects Version/s: | 3.8.0 |
| Fix Version/s: | 3.8.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Stephen Machnowski | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
The following code throws a NullPointerException at com.mongodb.internal.connection.ProtocolHelper.getErrorCode(ProtocolHelper.java:183). It appears retryWrites needs to be disabled in order to use WriteConcern.UNACKNOWLEDGED for insert/update operations.
|
| Comments |
| Comment by Githook User [ 17/Aug/18 ] |
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Fix NPE with unacknowledged retryable bulk writes
|
| Comment by Githook User [ 14/Aug/18 ] |
|
Author: {'username': 'rozza', 'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley'}Message: Fix NPE with unacknowledged retryable bulk writes
|
| Comment by Githook User [ 14/Aug/18 ] |
|
Author: {'username': 'rozza', 'email': 'ross.lawley@gmail.com', 'name': 'Ross Lawley'}Message: Fix NPE with unacknowledged retryable bulk writes
|
| Comment by Ross Lawley [ 08/Aug/18 ] |
|
Thanks smachnowski@vocabulary.com for reporting this issue, this will be fixed in the next release. |