Check usages of CollectionMetadata::currentShardHasAnyChunks()

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • CAR Team 2026-06-22
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None

      currentShardHasAnyChunks() is currently used mostly by migrations (both source and destination). The problem is that, in the authoritative model, non-owning shards have a null CollectionMetadata, so it's not possible to call this function in the first place. This ticket is to review usages of that function and add paths for the authoritative case if applicable.

            Assignee:
            Silvia Surroca
            Reporter:
            Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: