Summary: | I think AccessLogValve has race condition problem | ||
---|---|---|---|
Product: | Tomcat 6 | Reporter: | Xie Xiaodong <xxd82329> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | default | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
Xie Xiaodong
2009-05-05 15:12:45 UTC
I agree with your analysis for currentMIllis. I disagree with your analysis for currentDate. I think we can remove all the places this is updated except getDate() and still have the same functionality. I also think dateStamp needs to be volatile. Patch for the above has been committed to trunk and proposed for 6.0.x. The patch has been applied to 6.0.x and will be in 6.0.21 onwards. Filip noted in his review comments that there is also a thread safety issue around log file rotation. This still needs to be fixed. The remaining threading issues have been fixed and will also be in 6.0.21 |