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

Make possible to rebuild all SQL indexes programmatically with enabled persistence.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.0
    • None
    • None
    • None

    Description

      We have unofficial way for rebuilding indexes, which is called on activation if index.bin is removed from PDS directory.

      Code is located here [1]

      I think it's ok to make it public for several cases: model is changed, index is damaged, etc...

      Also current impl has a bug: CacheEntry in [2] is not touched, polluting heap and leading to OOM.

      [1] org.apache.ignite.internal.processors.cache.persistence.GridCacheDatabaseSharedManager#beforeExchange
      [2] org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing#rebuildIndexesFromHash

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ascherbakov Alexey Scherbakov
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: