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

Relax constraints on numer of records in ShardsvrGetStatsForBalancingCmd

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc2, 6.1.0-rc0
    • 6.0.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • v6.0
    • Sharding EMEA 2022-04-18, Sharding EMEA 2022-05-02

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: