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

Should indexes automatically upgrade to "v1" on a replication initial sync / resync?

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.1, 2.1.0
    • Component/s: Indexing, Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      If index is explicitly v:0 it will be created as that rather than v:1 on the new slave.

        Activity

        Hide
        dwight_10gen Dwight Merriman added a comment -

        wonder if one couldn't just reindex each collection. that might even be faster.

        by the way - what does compact() do?

        Show
        dwight_10gen Dwight Merriman added a comment - wonder if one couldn't just reindex each collection. that might even be faster. by the way - what does compact() do?
        Hide
        kristina Kristina Chodorow (Inactive) added a comment -

        It looks like compact upgrades the indexes.

        Show
        kristina Kristina Chodorow (Inactive) added a comment - It looks like compact upgrades the indexes.
        Hide
        eliot Eliot Horowitz added a comment -

        Ok - lets go with auto upgrading on sync.
        Is that what is not in master and v2.0?
        If so - can just resolve.

        Show
        eliot Eliot Horowitz added a comment - Ok - lets go with auto upgrading on sync. Is that what is not in master and v2.0? If so - can just resolve.
        Hide
        kristina Kristina Chodorow (Inactive) added a comment -

        It is in master but hasn't been backported to 2.0. Let me know if you'd like me to do that backport.

        Show
        kristina Kristina Chodorow (Inactive) added a comment - It is in master but hasn't been backported to 2.0. Let me know if you'd like me to do that backport.
        Hide
        auto auto (Inactive) added a comment -

        Author:

        {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

        Message: upgrade indexes on resync SERVER-3900
        Branch: v2.0
        https://github.com/mongodb/mongo/commit/fec06cfe915a53e5e53cd2b8e114c99814fbe436

        Show
        auto auto (Inactive) added a comment - Author: {u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'} Message: upgrade indexes on resync SERVER-3900 Branch: v2.0 https://github.com/mongodb/mongo/commit/fec06cfe915a53e5e53cd2b8e114c99814fbe436

          People

          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              3 years, 34 weeks, 1 day ago
              Date of 1st Reply: