Relax constraints on numer of records in ShardsvrGetStatsForBalancingCmd

XMLWordPrintableJSON

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

      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
            Reporter:
            Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: