Use transaction commit timestamp for deferred multikey entries with unknown timestamps

XMLWordPrintableJSON

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

      Problem

      The deferred multikey path can register multikey metadata without a concrete timestamp when the timestamp is not available at discovery time. The current fallback in mergeAndSortWorkerMultikeyPathInfo uses the batch's first timestamp before calling StorageInterfaceImpl::setIndexIsMultikey. This preserves the old conservative behavior but does not guarantee exact primary/secondary timestamp consistency for transaction cases where the actual commit timestamp is discovered later.

      Scope

      Notes

      The existing fallback is intentionally marked in the code as temporary. It should be replaced with exact commit timestamp handling so timestamp-consistent multikey metadata is maintained for prepared or transaction-owned null-timestamp cases.

            Assignee:
            Enrico Golfieri
            Reporter:
            Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: