Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Memtables 和提交日志是否有用于标记已删除数据的 Tombstone?Memtables中删除的数据在flush数据前如何标记?
是的,是的。提交日志包含可能是墓碑的突变。除非节点不正确地关闭,否则它们不会被读取,这不是为了持久性而用于重建 memtable。
Memtables 和 sstables 一样有墓碑。当您从 memtable 读取数据时,sstables 将被合并,并且最高时间戳获胜。请记住,删除实际上并不会从 memtable 或 sstables 中“删除”数据。它写入一个标记(墓碑),该标记被视为任何其他数据。