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

mongos needs to also refresh db version after receiving onImplicitCreate error

    • Fully Compatible
    • ALL
    • Hide

      see db_ver.js

      Show
      see db_ver.js
    • Sharding 2018-08-13, Sharding 2018-09-10, Sharding 2018-09-24, Sharding 2018-10-08, Sharding 2018-10-22, Sharding 2018-11-05, Sharding 2018-11-19, Sharding 2019-02-25
    • 17

      When a mongos with stale db version tries to send a write to an unsharded collection to the wrong shard, it will trigger the onImplicit create error since the collection does not exist on the shard. It will perform a refresh on the collection version and retry again, but since the database version was not refreshed, it will be sent to the same wrong shard and hit the same error again. This will keep on happening until it ran out of retries.

            Assignee:
            randolph@mongodb.com Randolph Tan
            Reporter:
            randolph@mongodb.com Randolph Tan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: