Uploaded image for project: 'Apache IoTDB'
  1. Apache IoTDB
  2. IOTDB-3335

Redundant data recovered by wal in multi-leader consensus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Core/WAL
    • 2022-5-StorageEngine

    Description

      Some data will be recovered wrongly because wal is kept in multi-leader consensus, memtable id still starts from 0

      SET STORAGE GROUP TO root.sg1;
      create aligned timeseries root.sg1.d1(s1 FLOAT encoding=RLE);
      insert into root.sg1.d1(time, s1) aligned values(1, 1.0);
      restart
      insert into root.sg1.d1(time, s1) aligned values(1, 10.0);
      insert into root.sg1.d1(time, s1) aligned values(2, 2.0);
      restart
      insert into root.sg1.d1(time, s1) aligned values(2, 20.0);
      insert into root.sg1.d1(time, s1) aligned values(3, 3.0);
      restart
      insert into root.sg1.d1(time, s1) aligned values(3, 3.0);
      insert into root.sg1.d1(time, s1) aligned values(4, 4.0);
      restart  

      Attachments

        Issue Links

          Activity

            People

              HeimingZ Haiming Zhu
              HeimingZ Haiming Zhu
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: