| Summary: | Hot deploy of large .war files let JVM crash (libzip.so) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | stephan | ||||
| Component: | server | Assignee: | Greg Wilkins <gregw> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | critical | ||||||
| Priority: | P3 | CC: | gregw, jesse.mcconnell, jetty-inbox, valentino | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 7.2.x | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
stephan
Created attachment 191904 [details]
JVM Crash Log
"If Jetty checks if the file is writable when scanning the directory, then it can be noticed that the file is not fully transfered. With this information the file can be skipped and the error can be avoided." something to consider...traditionally I always figured we ignored this deployment approach in favor of context.xml files that you 'touch' when you are ready to update the war file. I was a bit shocked to find things automatically deploying in webapps directory the other day...some assumption of mine proved wrong I suppose. anyway, I would recommend using that approach with the context file in general personally but I'll assign this to Jan for _comment_ (not assigning to you to fix it jan..just for your expert comment :) cheers I do think we need to update our scanner to only notify when a file has been stable for an entire scan interval - ie not notify on first detected change, but after stability after the change. I'll see if I can get this in for 7.4 I've updated the file scanner to check both the lastModified date and the file size when checking if a file has changed. Then for all notifications (add, remove and change), it waits until the file has been stable for 2 scans before reporting. This means that if a file is growing (even if it's modification date is set the same) then it will not be reported to the deployer. r2948 |