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

Relax constraints on numer of records in ShardsvrGetStatsForBalancingCmd

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc2, 6.1.0-rc0
    • Affects Version/s: 6.0.0-rc0
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding EMEA 2022-04-18, Sharding EMEA 2022-05-02

      Since range deletion tasks are not using transactions, it may happen that part of a batch gets deleted but the orphans count is not updated yet. This means that we can't expect that the number of records (at storage level) must always be greater than the number of orphans (tracked in range deletion task documents and updated asynchronously).

      Purpose of this ticket is to relax this invariant and instead simply return 0 in case the number of records exceeds the number of orphaned documents.

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: