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

Index left partially built if a node crashes during index create or rebuild

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.11
    • Component/s: sql
    • Labels:
      None
    • Release Note:
      Restart rebuild indexes, if they were not rebuilt, on node restart / reactivation.
    • Ignite Flags:
      Release Notes Required

      Description

      Currently, we do not have any state associated with the index tree. Consider the following scenario:
      1) Start node, put some data
      2) start CREATE INDEX operation
      3) Wait for a checkpoint and stop node before index create finished
      4) Restart node
      Since the checkpoint finished, the new index tree will be persisted to the disk, but not all data will be present in the index.

      We should somehow store information about initializing index tree and mark it valid only after all data is indexed. The state should be persisted as well.

        Attachments

        1. IndexRebuildingTest.java
          7 kB
          Stanislav Lukyanov
        2. IndexRebuildAfterNodeCrashTest.java
          6 kB
          Sergey Antonov

          Issue Links

            Activity

              People

              • Assignee:
                ktkalenko@gridgain.com Kirill Tkalenko
                Reporter:
                agoncharuk Alexey Goncharuk
                Reviewer:
                Andrey Mashenkov
              • Votes:
                0 Vote for this issue
                Watchers:
                12 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 - 5h 20m
                  5h 20m