Project

General

Profile

Bug #20858

bluestore's db does not use db.wal directory

Added by Chang Liu over 6 years ago. Updated over 6 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

it seems that we create a directory called db.wal, but we do not tell rocksdb to use this directory. it would be better:

1. remove code about db.wal, or
2. use db.wal via db_options.wal_dir option

History

#1 Updated by Sage Weil over 6 years ago

  • Status changed from New to Need More Info

Can you explain how you see the db.wal dir? bluestore+bluefs uses it extensively. Are you running iwth bluestore_bluefs = false?

#2 Updated by Chang Liu over 6 years ago

  • Status changed from Need More Info to Rejected

Sorry for the late reply.

you are right. BlueStore tells rocksdb to use db.wal directory via https://github.com/ceph/ceph/blob/c8c837f665edc6e32efda5f15dedd8a48698214a/src/os/bluestore/BlueStore.cc#L4683.

thanks for your help, Sage.

BTW, when I looked at the db_wal configuration, I found a rocksdb bug and fixed it. FYI https://github.com/facebook/rocksdb/pull/2692

Also available in: Atom PDF