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

wnote and jnote should not be treated as errors

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.12.1, 3.0.0
    • 2.12.0
    • Write Operations
    • None

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: