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

Add more details on why a shard is 'unavailable' for balancing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 2.4.6, 2.5.0
    • Component/s: Sharding
    • Labels:
    • Operating System:
      ALL

      Description

      This is the current code in DistributionStatus::getBestReceieverShard @ balancer_policy.cpp:

      if ( i->second.isSizeMaxed() || i->second.isDraining() || i->second.hasOpsQueued() ) {
        LOG(1) << i->first << " is unavailable" << endl;
        continue;
      }

      It would probably be nice if we split these up and display a different log message for each case.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: