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

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

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

      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.

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

              Created:
              Updated:
              Resolved:
              10 years, 16 weeks, 1 day ago