| Summary: | Jetty Server does not notice file symlink changes | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Elliott Clark <eclark84> |
| Component: | server | Assignee: | Project Inbox <jetty-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | eclark84, jesse.mcconnell, jetty-inbox |
| Version: | 7.5.4 | ||
| Target Milestone: | 9.0.x | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Elliott Clark
Context: https://gist.github.com/1384384 repo: https://gist.github.com/1384391 The issue is that on unix, links are resolved when a File Descriptor is obtained, thus changing a symlink to a directory does not make any change at all to the File Descriptor held by the jetty file cache, thus no change is noticed. It might be possible to add a watch file to the cache, that could be set to be the symlink itself. If the watch file changes, the entire resource cache can be flushed. Alternately, a cache flush could be scheduled every few seconds, which would not have a huge impact on scalability, but would help development mode. bumping this up to jetty9 to be fixed, since java 7 is in play which has support for symbolic links we should be able to resolve this reasonable reasonably sure this was resolved ages ago |