[JAVA-4403] Trying to bulk load documents with complex _id gives error Created: 10/Nov/21 Updated: 28/Oct/23 Resolved: 11/Nov/21 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | API |
| Affects Version/s: | 4.0.0 |
| Fix Version/s: | 4.4.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Steve Jerman | Assignee: | Ross Lawley |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | external-user | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Versions:
I am trying to upgrade my application to latest Spring/Mongo APIs. I am getting an error when I try to bulk load data saved using mongoexport. Attached is one of the files that gives the error. The error is:
Note that an extra _id is being generated/added by the driver and can be seen in the trace. So the server side error makes sense. I have been tracing through the code but so far haven't found where it gets added. This is my code for reference. I am accessing the Mongo driver via the spring template..
|
| Comments |
| Comment by Steve Jerman [ 11/Nov/21 ] | ||||||||||||||||||||
|
That should be OK.. From: Jeffrey Yemin (Jira) <jira@mongodb.org> Re: Trying to bulk load documents with complex _id gives error<https://jira.mongodb.org/browse/JAVA-4403> Hi Steve Jerman<https://jira.mongodb.org/secure/ViewProfile.jspa?name=steve%40kloudspot.com>, Generally we don't backport bug fixed to previous minor releases, unless they are fixing security issues. We are releasing 4.4.0 right now, so the best we can offer is that you upgrade to that release. This message was sent from MongoDB's issue tracking system. To respond to this ticket, please login to jira.mongodb.org<https://jira.mongodb.org> using your JIRA, MongoDB Cloud Manager, or MongoDB Atlas credentials. | ||||||||||||||||||||
| Comment by Jeffrey Yemin [ 11/Nov/21 ] | ||||||||||||||||||||
|
Generally we don't backport bug fixed to previous minor releases, unless they are fixing security issues. We are releasing 4.4.0 right now, so the best we can offer is that you upgrade to that release. | ||||||||||||||||||||
| Comment by Steve Jerman [ 11/Nov/21 ] | ||||||||||||||||||||
|
is it possible for this to be fixed in the 4.2.X branch? Also any idea when it would make a release? Happy to test if a SNAPSHOT is available... | ||||||||||||||||||||
| Comment by Jeffrey Yemin [ 11/Nov/21 ] | ||||||||||||||||||||
|
It looks like this regression was introduced by | ||||||||||||||||||||
| Comment by Githook User [ 11/Nov/21 ] | ||||||||||||||||||||
|
Author: {'name': 'Ross Lawley', 'email': 'ross.lawley@gmail.com', 'username': 'rozza'}Message: Fix id reporting bug with _ids containing arrays (#823)
| ||||||||||||||||||||
| Comment by Steve Jerman [ 11/Nov/21 ] | ||||||||||||||||||||
|
OK... some more information. I wrote a little test program...
Looks like it fails with the appended array... which is valid as far as I know and used to work... |