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

compact: Move downsampling and compact to sub dirs to avoid removal of potentially mounted dir. #278

Merged
merged 4 commits into from
Apr 9, 2018

Conversation

bwplotka
Copy link
Member

@bwplotka bwplotka commented Apr 9, 2018

I think this one is critical fix @fabxc

Before it, my removal of group dirs in local dir was simply not working (and err ignored), so I think I had all these compact overlaps because my compact planning was including ALL blocks (no matter what group O.o)

Signed-off-by: Bartek Plotka bwplotka@gmail.com

…f potentially mounted dir.

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
@@ -144,9 +150,12 @@ func runCompact(
}
done := true
for _, g := range groups {
os.RemoveAll(dataDir)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am 100% sure this was erroring 100% time for me ):

bwplotka added 2 commits April 9, 2018 09:42
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
@bwplotka bwplotka merged commit acf890e into master Apr 9, 2018
@bwplotka bwplotka deleted the dirs-fix branch April 9, 2018 09:53
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

Successfully merging this pull request may close these issues.

2 participants