mongodb 2.2.0 and mongo-java-driver 2.9.2

76 views
Skip to first unread message

Rick Chen

unread,
Oct 26, 2012, 9:50:28 PM10/26/12
to mor...@googlegroups.com
Hello,

I have a 2.0 mongo with 2.9.2 driver dev environment that works flawlessly.

On my production server with mongodb 2.2.0 and mongo-java-driver 2.9.2, all the writes seemed as if it's WriteConcern of 0. They writes and reads were out of sync, I was getting errors on my application.

Please advise.

Rick Chen

unread,
Oct 26, 2012, 10:42:39 PM10/26/12
to mor...@googlegroups.com
I think we narrow it down to getLastError with a null value on WriteConcern.
We have @Version on our collection and it seems like it's returning the wrong count here:
      if (res.getUpdatedCount() != 1)
   throw new ConcurrentModificationException(....)
Reply all
Reply to author
Forward
0 new messages