Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1178

wnote and jnote should not be treated as errors

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.12.1, 3.0.0
    • Affects Version/s: 2.12.0
    • Component/s: Write Operations
    • None

      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.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: