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

Note that post-moveChunk deletion runs with w="majority"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • mongodb-2.6
    • None
    • manual
    • None

    Description

      I noticed, while testing cleanupOrphaned command, that both cleanupOrphaned and moveChunk delete documents from shards with w="majority". The code path is in RangeDeleter:

      https://github.com/mongodb/mongo/blob/master/src/mongo/db/range_deleter_db_env.cpp#L127

      The deleter waits up to an hour for a majority to catch up, then errors out. I think a kernel dev should verify my understanding of this, and the manual should mention this behavior when discussing sharding internals.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 5 weeks ago