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

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.11
    • sql
    • None
    • Restart rebuild indexes, if they were not rebuilt, on node restart / reactivation.
    • 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. IndexRebuildAfterNodeCrashTest.java
          6 kB
          Sergey Antonov
        2. IndexRebuildingTest.java
          7 kB
          Stanislav Lukyanov

        Issue Links

          Activity

            People

              ktkalenko@gridgain.com Kirill Tkalenko
              agoncharuk Alexey Goncharuk
              Andrey Mashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              11 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