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

Server 2.6 should respect userFlags when creating a new replica

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Won't Fix
    • 2.6.7
    • None
    • Replication
    • None
    • ALL
    • Hide

      Create a small replica set
      Create a collection with usePowerOf2Size disabled
      Add a new member to the replica set
      This new member will change the value of usePowerOf2Size

      Show
      Create a small replica set Create a collection with usePowerOf2Size disabled Add a new member to the replica set This new member will change the value of usePowerOf2Size

    Description

      Replica sets created by 2.6 servers always set the usePowerOf2Sizes flag for all collections it creates, even if the source collection being replicated does not have this flag set.

      My GridFS collection almost doubled in size on the new server because most of my documents were created with an old driver version. This issue is described here: SERVER-13331 .

      I believe the correct workaround is to copy the data files from an existing replica member before joining the replica set, but I haven't tested that yet.

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            hhubris Tony Nelson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: