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

MongoClient object accepts setWriteConcern which seems to have no effect

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 3.0.0
    • API, Write Operations
    • None

    Description

      The following code snippet does not set WriteConcern on the MongoDatabase instance as might be expected:

      MongoClient mongoClient = new MongoClient( <something> );
      mongoClient.setWriteConcern(WriteConcern.REPLICAS_SAFE);
      MongoDatabase db = mongoClient.getDatabase("wc");
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: