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

raft/shard log errors #311

Closed
Dieterbe opened this issue Mar 7, 2014 · 5 comments
Closed

raft/shard log errors #311

Dieterbe opened this issue Mar 7, 2014 · 5 comments
Milestone

Comments

@Dieterbe
Copy link
Contributor

Dieterbe commented Mar 7, 2014

while testing out #293 I noticed this in the daemon output:
https://gist.github.com/Dieterbe/9413295
right now:

~ ❯❯❯ ls -alh /tmp/influxdb/development/db/shard_db/00001/                                                                                    ⏎
total 28M
drwxr-xr-x 2 dieter dieter  180 Mar  7 11:14 .
drwxr--r-- 5 dieter dieter  100 Mar  7 10:22 ..
-rw-r--r-- 1 dieter dieter  26M Mar  7 10:23 000005.sst
-rw-r--r-- 1 dieter dieter 2.0M Mar  7 11:28 000006.log
-rw-r--r-- 1 dieter dieter 745K Mar  7 11:14 000007.sst
-rw-r--r-- 1 dieter dieter   16 Mar  7 10:22 CURRENT
-rw-r--r-- 1 dieter dieter    0 Mar  7 10:22 LOCK
-rw-r--r-- 1 dieter dieter  453 Mar  7 11:14 LOG
-rw-r--r-- 1 dieter dieter  64K Mar  7 10:22 MANIFEST-000002
~ ❯❯❯ 

although i did restart influx a few times in the meantime.

@pauldix pauldix added this to the 0.5.0 milestone Mar 7, 2014
@jvshahid
Copy link
Contributor

jvshahid commented Mar 7, 2014

I think your tmp directory was nuked somehow. Did you do anything that could delete your tmp directory or is this something that you can easily reproduce ?

@Dieterbe
Copy link
Contributor Author

Dieterbe commented Mar 7, 2014

i don't think i did anything to my /tmp
haven't seen it happen again, but if it happens again, anything specific i should look at?

@jvshahid
Copy link
Contributor

jvshahid commented Mar 7, 2014

no just ls tmp and make sure that the entire directory isn't gone. You can also check your cron to make sure you don't have a script that constantly clean up tmp.

I'll go ahead and close this issue, please reopen if you successfully repro this issue.

@jvshahid jvshahid closed this as completed Mar 7, 2014
@Dieterbe
Copy link
Contributor Author

Dieterbe commented Mar 7, 2014

note that most (if not all) common linux distributions implement the FHS (file hierarchy standard) which specifies that /tmp can be cleaned at any time.

quote man hier:

       /tmp   This directory contains temporary files which may be deleted with no notice, such as by a regular job or at system boot up.

@elcct
Copy link
Contributor

elcct commented Mar 7, 2014

A lot of distributions use tmpfs filesystem for /tmp point, which means all data will be gone after reboot

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