Skip to content

rocksdb may lose data after shutting down the machine/container directly #486

@qizhou

Description

@qizhou

Default rocksdb options fsync is disabled, which means that the data are not written to disk (in os memory) after db put operation. This is acceptable for performance optimization. However, this also implies that if a master/slave's machine/container is shutdown, and the cluster crashes, restarting the cluster may lead to an inconsistent state, which should be detected and recovered.

import rocksdb
a = rocksdb.Options()
a.use_fsync
False

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions