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

cleanupOrphaned command is too slow

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Labels:
      None
    • ALL

      I have created Sharded cluster with 3 shards. while balancer was moving the chunk, i executed count query on sharded collection & found that it is giving mismatched count.

      I came to know about cleanupOrphaned command which removes invalid documents from the shard & executed on the primary node. It has taken more than 4 days time (i.e. 96 hours) to remove 1.8M records.

      First of all why we need to run this command manually, it should have been automatically handled during balancing process. Even after running this command, It takes too much time to remove document. Is there any faster method to clear orphaned file?

      Thanks.....

            Assignee:
            Unassigned Unassigned
            Reporter:
            abhishek.mishra@cheersin.com abhishek mishra
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: