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

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

    • 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

      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@mongodb.com Adrian Gonzalez Montemayor
            Reporter:
            brett.nawrocki@mongodb.com Brett Nawrocki
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: