Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1714

Please improve the documentation about meta data upgrade from 2.2 to 2.4 in a Sharded enviroment

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      A user raised an issue yesterday with questions about the meta-data upgrade procedure when upgrading from 2.2 to 2.4. The documentation is here. While most of the documentation is straightforward and self-explanatory, this section might need a revisit:

      If any index on the config database is {v:0}, you should drop that index using db.collection.dropIndex(), and then rebuild it with db.collection.ensureIndex(). This does not apply to indexes on other databases in the cluster. If you need to upgrade the _id index to {v:1} use the db.collection.reIndex().

      Specifically:
      1. Is it necessary to drop & recreate indexes instead of just running db.collection.reIndex() on all collections which contain

      {v:0}

      indexes?
      2. Explicitly mention that customers should do this once on the mongos which would then propagate to all configsvrs. The customer thought he had to do it once on each configsvr by connecting directly to it => this is very error prone.

      Please let me know if this makes sense.

      Thanks, Angshuman

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            angshuman.bagchi@mongodb.com Angshuman Bagchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              10 years, 42 weeks, 3 days ago