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

Reconsider use of /tmp by TomcatEmbeddedServletContainerFactory #8459

Closed
philwebb opened this issue Mar 1, 2017 · 2 comments
Closed

Reconsider use of /tmp by TomcatEmbeddedServletContainerFactory #8459

philwebb opened this issue Mar 1, 2017 · 2 comments
Labels
status: declined A suggestion or change that we don't feel we should currently apply

Comments

@philwebb
Copy link
Member

philwebb commented Mar 1, 2017

Originally raised in #5009 the /tmp folder can get cleared out mid-flight. This comment makes a compelling case for using /var/cache (although I'm not sure if that's technically feasible).

@wilkinsona
Copy link
Member

wilkinsona commented Mar 1, 2017

I don't think that /var/cache is an appropriate location. The FHS says that "the application must always be able to recover from manual deletion of these files" which is not the case.

I actually think that /tmp is reasonable. The FHS says:

  • Programs must not assume that any files or directories in /tmp are preserved between invocations of the program.
  • Although data stored in /tmp may be deleted in a site-specific manner, it is recommended that files and directories located in /tmp be deleted whenever the system is booted.

We don't require the files to be preserved between invocations and things will work fine if the recommendation for when to delete files is followed.

@philwebb philwebb added status: declined A suggestion or change that we don't feel we should currently apply and removed for: team-attention An issue we'd like other members of the team to review priority: normal type: enhancement A general enhancement labels Mar 1, 2017
@philwebb philwebb closed this as completed Mar 1, 2017
@philwebb
Copy link
Member Author

philwebb commented Mar 1, 2017

OK, thanks @wildcart for the suggestion but this doesn't seem like an option we can use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: declined A suggestion or change that we don't feel we should currently apply
Projects
None yet
Development

No branches or pull requests

2 participants