[JAVA-425] Support MongoDB Server 2.0 getLastError Changes (j, w=string/number) Created: 31/Aug/11  Updated: 25/Jun/13  Resolved: 08/Sep/11

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 2.7

Type: Improvement Priority: Major - P3
Reporter: Brendan W. McAdams Assignee: Brendan W. McAdams
Resolution: Done Votes: 0
Labels: SERVER_V2
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

MongoDB Server 2.0 supports a number of new features with getLastError which the driver must support:

  • the boolean field "j" is now supported, when true it causes a wait for group commit when journaling is enabled (instead of the previous fsync: true semantic when journaling is enabled)
  • Data Center Awareness - MongoDB 2.0 allows the value for 'w' to be a string
    • The value may be a tag such as "customerData"
    • The value may also be "majority" which ensures the write propagates to a majority of nodes. We should probably make a constant for this.
    • (There may be an object support, someone needs to clarify this as I can't find documented examples)


 Comments   
Comment by auto [ 28/Oct/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: - JAVA-425: throw exception if w is wrong type
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/c5ee94af18c51f1adf04d321b22fd3a48e41da22

Comment by auto [ 28/Oct/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: - JAVA-425: further cleanup
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/3eae785e650a22e20efa5b2371c6e4d090f9b713

Comment by auto [ 28/Oct/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-425: restore continueOnErrorForInsert to restore buildability of code
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/8f159f3b9f33e24193287fd6700cba21459109c3

Comment by auto [ 28/Oct/11 ]

Author:

{u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

Message: - JAVA-425: fix cast exception in case W is a String
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/224e6b06d33ba82b599506e4d0195bc045e308eb

Comment by auto [ 24/Oct/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-425: WriteConcern in "Default" (W < 0) passes through empty getLastError to allow use of getLastErrorDefaults setting on server
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/e8e2bc8962816572740a08e51307d10b3003ef38

Comment by Brendan W. McAdams [ 08/Sep/11 ]

Interfaces laid out; needs review.

Comment by auto [ 08/Sep/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-425 - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)

Comment by auto [ 08/Sep/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-425 - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)

Comment by auto [ 08/Sep/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-425 - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)

Comment by auto [ 08/Sep/11 ]

Author:

{u'login': u'bwmcadams', u'name': u'Brendan W. McAdams', u'email': u'brendan@10gen.com'}

Message: JAVA-425 - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)

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