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

Restore all schemes on recovery for time travel requests purposes.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.0.0-alpha5
    • None
    • general

    Description

      Due to recovery of SchemaManager seems we need to restore and register all schemes, i.e. like :

          private SortedMap<Integer, byte[]> collectAllSchemas(UUID tblId) {
                  Cursor<Entry> cur = metastorageMgr.prefix(schemaHistPrefix(tblId));
      
                  SortedMap<Integer, byte[]> schemes = new TreeMap<>();
      
                  for (Entry ent : cur) {
                      String key = ent.key().toString();
                      int descVer = extractVerFromSchemaKey(key);
      
                      schemes.put(descVer, ent.value());
                  }
      
                  return schemes;
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            zstan Evgeny Stanilovsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: