-
Notifications
You must be signed in to change notification settings - Fork 977
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
when /tmp is under tmpfs (in arch linux) opts.DB.IngestExternalFiles(externalFiles) will block forever #217
Comments
Thanks for your feedback. Do you have any suggestion to fix it? |
use another dir to avoid tmpfs. for example current_dir/tmp |
I think this is a critical issue since most Linux distros mount |
@rapiz1 Would you mind sending a fix, change the dir or add a caveat warning in the doc. |
func (c *Cluster) Start() {
......
+ _ = os.RemoveAll("./tmp")
+ _ = os.Mkdir("./tmp", 0755|os.ModeDir)
for storeID := uint64(1); storeID <= uint64(c.count); storeID++ {
- dbPath, err := ioutil.TempDir("", "test-raftstore")
+ dbPath, err := ioutil.TempDir("./tmp", "test-raftstore")
...... maybe somewhat like this? Or add mkdir&rm in Makefile. |
What's the point of using directio here? I think performance and consistency across crash is not an issue since it's just a tutorial project. So we can just simply replace all |
snap
directio open file issue
change dir in cluster.go could fix this.
The text was updated successfully, but these errors were encountered: