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

Seeing lots of setShardVersion failed

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.8.3
    • Component/s: None
    • Labels:
      None
    • ALL

      We do client side partitioning by day, because we need to be able to remove lots of data quickly. With this scheme we run into all sort of bugs in mongos. This seems to be the latest one. The application gets "setShardVersion failed" when it attempts to write to a database that has been dropped.

      The application is designed to not do this by periodically checking which databases exist and making sure to write only to those that exist. Still, and presumably because of SERVER-1726, it gets the names of databases that in fact do not exist, and subsequently when it tries to write to these it gets errors back.

      This is from the mongos log:

      Sat Sep  3 00:33:40 [conn9186] AssertionException in process: setShardVersion failed host[richcollshard1/richcolldb02,richcolldb01.byburt.com:27017] { oldVersion: Timestamp 0|0, assertion: "fragments_20110831.exposure_fragme
      Sat Sep  3 00:33:40 [conn9186]      setShardVersion failed host[richcollshard3/richcolldb06,richcolldb05.byburt.com:27017] { oldVersion: Timestamp 0|0, assertion: "fragments_20110831.exposure_fragments dropped. Re-shard coll
      Sat Sep  3 00:33:40 [conn9186] Assertion: 10429:setShardVersion failed host[richcollshard3/richcolldb06,richcolldb05.byburt.com:27017] { oldVersion: Timestamp 0|0, assertion: "fragments_20110831.exposure_fragments dropped. R
      0x52019a 0x6a44bd 0x6a4022 
       /opt/mongodb-1.8.3/bin/mongos(_ZN5mongo11msgassertedEiPKc+0x12a) [0x52019a]
       /opt/mongodb-1.8.3/bin/mongos() [0x6a44bd]
       /opt/mongodb-1.8.3/bin/mongos() [0x6a4022]
      Sat Sep  3 00:33:40 [conn9186] ~ScopedDBConnection: _conn != null
      Sat Sep  3 00:33:40 [conn9186] AssertionException in process: setShardVersion failed host[richcollshard3/richcolldb06,richcolldb05.byburt.com:27017] { oldVersion: Timestamp 0|0, assertion: "fragments_20110831.exposure_fragme
      Sat Sep  3 00:33:40 [conn9186] end connection 127.0.0.1:36975
      Sat Sep  3 00:33:40 [mongosMain] connection accepted from 127.0.0.1:36978 #9190
      Sat Sep  3 00:33:40 [conn9187] end connection 127.0.0.1:36978
      

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            iconara Theo Hultberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: