Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-3568

MongoException "norepl" is thrown when data is inserted in a sharded environment using WriteConcern "ReplicasSafe".

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.8.2, 1.9.1
    • Component/s: Replication, Sharding
    • None
    • Environment:
      Ubuntu 10.10 x86_64
    • ALL

      To test the mongoDb sharding capabilities we have continuously inserted data into a single shard consisting of one replica set (1 Master, 1 Secondary and 1 Arbiter). Almost every time a chunk is splitted (as indicated by the mongod log file of the master) a MongeException "norepl" occurs. We are using the mongo java driver 2.6.2 but could also reproduce the problem with the php driver.

      This only happens when we use the WriteConcern "ReplicasSafe".

      To reproduce the problem a java maven project is attached to this issue. Here are the necessary steps to run the application:

      • Read the README.txt to see the necessary test setup.
      • Adapt the "config.properties" to use the correct mongos uri and writeconcern.
      • Start the Inserter (located in src\main\java\com\seitenbau\testing\mongo\runner) main method and watch the console output.

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            michaelsb Michael Wagner
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: