Haiming Zhu created IOTDB-3335:
----------------------------------
Summary: Redundant data recovered by wal in multi-leader consensus
Key: IOTDB-3335
URL: https://issues.apache.org/jira/browse/IOTDB-3335
Project: Apache IoTDB
Issue Type: Bug
Components: Core/WAL
Reporter: Haiming Zhu
Assignee: Haiming Zhu
Some data will be recovered wrongly because wal is kept in multi-leader
consensus, memtable id still starts from 0
{code:java}
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 {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)