-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove fss files from a snapshot when a block is removed. #2859
Conversation
c145665
to
6f898ab
Compare
6f898ab
to
c102112
Compare
…eaning them up if the block was deleted before a server restart. https://gist.github.com/nekufa/010185dfb59261f222a0042d3a7d2a1c Signed-off-by: Derek Collison <derek@nats.io>
c102112
to
68104d7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@derekcollison by the way, is this fix included in docker image synadia/nats-server:nightly-20220217? |
Should be, let me double check that nightlies being built correctly etc. |
Yes should be, what are you seeing? |
Similar to before would need to see |
there are so few files since we recently purge streams
image: synadia/nats-server:nightly-20220217 |
With nightly and the fix referenced, on a server restart all So I would suggest doing a server restart and specifically checking |
i cant find *.fss files, our problem - many *.key files. |
My apologies, are you using encrypted file storage? |
seems yes, its our options in helm values file https://github.com/nats-io/k8s/tree/main/helm/charts/nats
result nats.conf
|
Ok, will get that fixed today and posted to nightly, same logic as this fix. Thanks for your patience. |
thanks for hint about encryption, without it we cant see key files and all good. |
ok this has been merged and is also being built for nightly as we speak. |
@derekcollison with latest build everything works with encrypted storage :) thanks! |
During a filestore snapshot we generate the fss files for the snapshot but were not cleaning them up if the block was deleted before a server restart.
https://gist.github.com/nekufa/010185dfb59261f222a0042d3a7d2a1c
Signed-off-by: Derek Collison derek@nats.io
/cc @nats-io/core