You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(AOE): lost data when restart because of GetSegmentedInfo failed during restart engine #483
create table and insert some data (less than block size)
ctrl-C
restart db
Expected behavior:
The local engine returns the specific segmented index to adjust the raft init log index to recover all the data which have been inserted.
Actual behavior:
The local engine returns ErrNotFound, so we do not adjust the init index during the startup process and we cannot recover the inserted data which have not been sync to disk.
Regarding the data replay after the restart, basically all the problems stem from the asynchronous flashing of the metadata of the data. Here's the possible root cause of this issue. When a new raft group is created, the dist aoe will commit a new table in distributed KV storage, and at the same time, a new table is created in the local AOE engine. Since the local engine flushes the meta and data asynchronously, if a crash happened before the flushing, there will be no record of the new table in the local engine during restart.
This is a design problem, the solution needs to be explored
Activity
XuPeng-SH commentedon Aug 24, 2021
Regarding the data replay after the restart, basically all the problems stem from the asynchronous flashing of the metadata of the data. Here's the possible root cause of this issue. When a new raft group is created, the dist aoe will commit a new table in distributed KV storage, and at the same time, a new table is created in the local AOE engine. Since the local engine flushes the meta and data asynchronously, if a crash happened before the flushing, there will be no record of the new table in the local engine during restart.
This is a design problem, the solution needs to be explored
sukki37 commentedon Aug 24, 2021
Add logs
XuPeng-SH commentedon Aug 24, 2021
There is a logic bug. The index of the create table is not counted as a segmented index.
XuPeng-SH commentedon Aug 24, 2021
fixed by #490