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

wal dir is not used in meta server #893

Closed
wenzhenghu opened this issue Sep 4, 2019 · 3 comments
Closed

wal dir is not used in meta server #893

wenzhenghu opened this issue Sep 4, 2019 · 3 comments

Comments

@wenzhenghu
Copy link

according to rocksdb log, wal and data is in the same dir.

2019/09/04-16:42:02.391629 7f8353d37b40 SST files in data/meta/nebula/0/data dir, Total Num: 0, files: 
2019/09/04-16:42:02.391631 7f8353d37b40 Write Ahead Log file in data/meta/nebula/0/data: 
...
2019/09/04-16:42:02.391655 7f8353d37b40                                 Options.wal_dir: data/meta/nebula/0/data

by there still have a wal dir . maybe the setting is wrong, wal should move to wal dir.

[root@nebula2 0]# ls
data  wal
[root@nebula2 0]# pwd
/usr/local/nebula/data/meta/nebula/0
[root@nebula2 0]# ls wal/
0
[root@nebula2 0]# ls wal/0/
[root@nebula2 0]# 
@critical27
Copy link
Contributor

critical27 commented Sep 5, 2019

Just as you said, wal and data is in the same dir (see NebulaStore::newPart). We may clean outdated wal in background. Default wal_ttl is 86400s.

@wenzhenghu
Copy link
Author

@critical27 did you mean that outdated wal will first move to data/meta/nebula/0/wal ?

@zhangguoqing
Copy link
Contributor

zhangguoqing commented Oct 17, 2019

In fact, when metad is a cluster, the wal will be used. :)

yixinglu pushed a commit to yixinglu/nebula that referenced this issue Jan 31, 2023
* Refactor to one part one rocksdb (vesoft-inc#896)

* increment backup and restore (vesoft-inc#893)

* increment backup

* fix UT

* restore process return parthost info

* support drop multi snapshot

* fix spaceId is empty

* drop empty checkpoint directory

* optimize

* address pengweisong's comments

* address critical27's comments

confirm with Sophie

* support clusterId in backupmeta (vesoft-inc#972)

Co-authored-by: panda-sheep <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants