Resharding Coordinator and Recipient Persist Invalid Start/End Times to State Document

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • Sharding 2022-10-17, Sharding 2022-12-12, Sharding NYC 2022-12-26, Sharding NYC 2023-01-09, Sharding NYC 2023-01-23
    • 20
    • 3
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The ReshardingCoordinatorService persists the start and end times for phase transitions as part of its state document. However, during phase transitions, the coordinator is persisting these times before setting them.

      The ReshardingRecipeintService has a similar issue when transitioning to applying and strict consistency.

      It's worth noting that the recipient service will set the copying start time before writing this value to disk. However, this has the problem of leaving a potentially invalid start time in memory if persisting to disk fails.

      This issue affects the following functions involving state transitions:

      For all of these functions, the timestamp for the start/end times should be chosen, written to disk, and then used to update the metrics in-memory.

            Assignee:
            Adrian Gonzalez Montemayor
            Reporter:
            Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: