[CSHARP-1057] Detect "jnote" errors reported by server 2.4.x with { ok : 1 } Created: 05/Sep/14  Updated: 10/Sep/14  Resolved: 08/Sep/14

Status: Closed
Project: C# Driver
Component/s: Error Handling
Affects Version/s: 1.9.2
Fix Version/s: None

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


 Description   

When sending a write concern of { j : true } to a server with journaling disabled server versions 2.2.x. and 2.4.x respond as follows:

"{ \"n\" : 0, \"connectionId\" : 4, \"jnote\" : \"journaling not enabled on this server\", \"err\" : null, \"ok\" : 1.0 }"

We were not properly detecting this as an error because we assumed that { ok : 1 } meant everything was OK.



 Comments   
Comment by Githook User [ 10/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1057: Fix unit test.

Conflicts:
src/MongoDB.Driver.Tests/Operations/BulkWriteOperationTests.cs
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/6c48660cdb7925fa408081ce8ccbec94cf3d16de

Comment by Robert Stam [ 08/Sep/14 ]

We actually won't be doing this.

See CSHARP-959.

Comment by Githook User [ 08/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1057: Fix unit test.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/9e402475723d4a4e1bf5d69da6d9ac643d2d38f3

Comment by Githook User [ 08/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: Revert "CSHARP-1057: Detect "jnote" errors reported by server 2.4.x."

See CSHARP-959.

This reverts commit 5c5aaa97d1f84d121a8ca0cba3521c5e1255abda.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/e7e012453346dceb076b1f0a3d69a5c6a5557643

Comment by Githook User [ 05/Sep/14 ]

Author:

{u'username': u'rstam', u'name': u'rstam', u'email': u'robert@robertstam.org'}

Message: CSHARP-1057: Detect "jnote" errors reported by server 2.4.x.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/5c5aaa97d1f84d121a8ca0cba3521c5e1255abda

Generated at Wed Feb 07 21:38:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.