Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据同步时展开文档树操作可能导致数据丢失 #7129

Closed
88250 opened this issue Jan 19, 2023 · 0 comments
Closed

数据同步时展开文档树操作可能导致数据丢失 #7129

88250 opened this issue Jan 19, 2023 · 0 comments
Assignees
Labels
Milestone

Comments

@88250
Copy link
Member

88250 commented Jan 19, 2023

同步下载数据后会执行从快照迁出数据到工作区,迁出是逐步写入文件系统的,这个时候如果用户刚好操作了展开文档树就有可能会丢数据。因为迁出快照到工作区时,文件系统还在写数据,这时候笔记本的元数据可能还没有写入,此时展开文档树,可能会导致判断为损坏的笔记本,然后执行删除笔记本操作(日志中出现 moved corrupted box)。

修复方案:不再根据笔记本元数据是否损坏来清理数据,缺失元数据只是不展示在文档树,但是数据还是保留为好。发现损坏的笔记本时打印日志 found a corrupted box

@88250 88250 self-assigned this Jan 19, 2023
@88250 88250 changed the title 数据同步以后展开文档树操作可能导致数据丢失 数据同步时展开文档树操作可能导致数据丢失 Jan 19, 2023
@88250 88250 added this to the 2.7.1 milestone Jan 19, 2023
@88250 88250 added the Bug label Jan 19, 2023
@88250 88250 closed this as completed Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant