need to check draining and potentially other shard status before auto-migrates

XMLWordPrintableJSON

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

      While we reload shard information before running the balancer, we don't do the same for auto-migrates, and the logic for the target shard is different from the balancer policy.

      There's also a secondary race condition in that it's possible for shard status to change after shard info reload and before the migration is triggered, but this is a much rarer event and will generally be caught while waiting for draining.

            Assignee:
            Randolph Tan
            Reporter:
            Greg Studer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: