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

Possibility for cancelled/aborted stages to leave stray files in pool #12

Open
ZNikke opened this issue Feb 14, 2024 · 0 comments
Open

Comments

@ZNikke
Copy link
Collaborator

ZNikke commented Feb 14, 2024

Considering the abort() function

return Files.deleteIfExists(requestFile) && Files.deleteIfExists(errorFile) && Files.deleteIfExists(inFile);

I think it should probably delete the final destination file as well if it exists, since the stage was aborted the pool will have no knowledge of the file if the provider was too quick in placing it there. This of course assumes that abort() isn't used for general cleanup after a successful stage.

It looks to me that there is no check in poll()

public Set<Checksum> poll() throws IOException, InterruptedException, EnditException

that checks that the stage is still active before moving a staged file to its final destination, does the dcache nearline spi handle this or should the provider do some additional checks?

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

1 participant