Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13382

DurableBackgroundTask can abandon incomplete task

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.10, 2.9.1
    • None

    Description

      DurableBackgroundTasks are tracked using metastorage, there's a specific marker for every task, and it is removed right after the task is complete.

      But there's a race between checkpointer and metastorage. End-marker removal is a logical operation, while task itself is mostly physical (at least the existing one). So, following scenario is possible:

      • Checkpoint occurs in the middle of the task;
      • Task is completed before the next checkpoint;
      • Metastorage record is deleted, this fact if written to WAL and synced to the storage;
      • Node failed;
      • Recovery process applies deletion from metastorage, this means that DurableBackgroundTasks info is lost;
      • But part of the index is still present in the storage.

      I think that we should remove markers from metastorage only after the next checkpoint, this will 100% save us from such situation.

      Attachments

        Issue Links

          Activity

            People

              makedonskaya Maria Makedonskaya
              makedonskaya Maria Makedonskaya
              Sergey Chugunov Sergey Chugunov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m