Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1057

Detect "jnote" errors reported by server 2.4.x with { ok : 1 }

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 1.9.2
    • Error Handling
    • None

    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.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: