[JAVA-1178] wnote and jnote should not be treated as errors Created: 24/Apr/14  Updated: 30/Jan/15  Resolved: 28/Apr/14

Status: Closed
Project: Java Driver
Component/s: Write Operations
Affects Version/s: 2.12.0
Fix Version/s: 2.12.1, 3.0.0

Type: Bug Priority: Major - P3
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

In 2.12.0 the new bulk write operations, when executing against a pre 2.6 server, treat a getlasterror response with wnote, jnote, or wtimeout as exceptions. But it turns out that pre-2.6 servers use wnote and jnote for things other than errors. For example, when issuing a remove with a query that matches no documents, the server may respond with a wnote:

{ ... "wnote" : "no write has been done on this connection", "err" : null, "ok" : 1.0 ... }

Given that, the driver should remove special handling of jnote and wnote.

Impact of this bug is low, as it only affects the new bulk write operations, and then only when running against pre-2.6 servers.



 Comments   
Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Removing special handling of jnote/wnote for bulk write operations against servers <= 2.4
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/6b4de7563acdccfe3876b265abde3aaf022e5892

Comment by Githook User [ 08/Jan/15 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Remove BulkWriteException journaling test

JAVA-1178
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/c3c9fcd82b7af62f6392e26222735d73eb9e462d

Comment by Githook User [ 08/Sep/14 ]

Author:

{u'username': u'rozza', u'name': u'Ross Lawley', u'email': u'ross.lawley@gmail.com'}

Message: Remove BulkWriteException journaling test

JAVA-1178
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8618d7ee68669bcc91119010084ddfe94c57684f

Comment by Githook User [ 01/Aug/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Working a bit on the test to see what's going on with Jenkins.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e79bee0adfca6703236036e8307ee76216677542

Comment by Githook User [ 01/Aug/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Added a test for wtimeout check in GLE response, and removed some code that is dead now that jnote/wnote are no longer checked
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/19140283f41c917144e3e3987392c15a1d2a1402

Comment by Githook User [ 01/Aug/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Remove special handling of jnote/wnote for pre-2.6 servers.
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/439806ca637e42796866aa58ebc3b26ef670a23f

Comment by Jeffrey Yemin [ 29/Apr/14 ]

Closing for 2.12.1 release.

Comment by Githook User [ 28/Apr/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Working a bit on the test to see what's going on with Jenkins.
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/e79bee0adfca6703236036e8307ee76216677542

Comment by Githook User [ 28/Apr/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Added a test for wtimeout check in GLE response, and removed some code that is dead now that jnote/wnote are no longer checked
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/19140283f41c917144e3e3987392c15a1d2a1402

Comment by Githook User [ 28/Apr/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Removing special handling of jnote/wnote for bulk write operations against servers <= 2.4
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/6b4de7563acdccfe3876b265abde3aaf022e5892

Comment by Githook User [ 25/Apr/14 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: JAVA-1178: Remove special handling of jnote/wnote for pre-2.6 servers.
Branch: 2.12.x
https://github.com/mongodb/mongo-java-driver/commit/439806ca637e42796866aa58ebc3b26ef670a23f

Generated at Thu Feb 08 08:53:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.