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

thoth should avoid holding open cores dataset #174

Open
bahamat opened this issue Jan 28, 2019 · 1 comment
Open

thoth should avoid holding open cores dataset #174

bahamat opened this issue Jan 28, 2019 · 1 comment

Comments

@bahamat
Copy link
Member

bahamat commented Jan 28, 2019

We've had some occurrences where a manta reprovision failed because thoth was in the process of uploading a core for the instance.

Maybe we should move cores out to a different directory before uploading?

@jclulow
Copy link
Contributor

jclulow commented Jan 28, 2019

In order to get them from the cores dataset to another file system, they'll have to be copied first; you can't atomically rename across a file system boundary. Some cores are large, and the system may be under heavy I/O load, so this copying may itself take a considerable period of time and be holding the dataset open in the meantime.

I think we probably need to assume that there may always be something holding the cores dataset open, and deal with that in the reprovision process. Either by waiting and retrying the unmount, or by forcing the unmount, or by restructuring some part of the file system layout or the reprovision process so that the unmount isn't necessary at all.

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

2 participants