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

TTL monitor doesn't sync userFlags on the secondary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Critical - P2 Critical - P2
    • 2.2.0-rc1
    • Affects Version/s: 2.2.0-rc0
    • Component/s: Usability
    • None
    • ALL

      The TTL monitor syncs the collection-level userFlags when it runs. This is what triggers TTL collections to use the usePowerOf2Sizes feature to prevent fragmentation. Currently, if you create a TTL index on the primary, the index gets propagated to the secondary, but the userFlags don't get set on the secondary, because the TTL monitor returns immediately. This can cause large fragmentation on the secondaries.

      To fix this, the TTL monitor should sync the userFlags on the secondary (it just shouldn't do any deletes).

        1. ttl_repl.js
          2 kB
          Kevin Matulef

            Assignee:
            matulef Kevin Matulef
            Reporter:
            matulef Kevin Matulef
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: