Task #2288 (closed)
Opened 9 years ago
Closed 9 years ago
doRollover and filemode
| Reported by: | atarkowska | Owned by: | atarkowska |
|---|---|---|---|
| Priority: | minor | Milestone: | OMERO-Beta4.2 |
| Component: | Web | Version: | n.a. |
| Keywords: | n.a. | Cc: | |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | 2010-04-16 (7) |
Description
If TimedRotatingFileHandler? does an doRollover() it opens the new file hardcoded with mode "w" whilst the baseclass FileHandler? opens it with mode "a" if nothing else is specified in the constructor. If multiple processes write to the same file, and one does the RollOver? all other newly spawned processes write to the end of the new file but the still running first process who did the rollover will write from the beginning of the file - overwriting log entries from the other procs.
Change History (3)
comment:1 Changed 9 years ago by atarkowska
- Sprint changed from 2010-04-30 (8) to 2010-04-16 (7)
comment:2 Changed 9 years ago by atarkowska
- Status changed from new to assigned
comment:3 Changed 9 years ago by atarkowska
- Remaining Time changed from 0.5 to 0
- Resolution set to fixed
- Status changed from assigned to closed
(In [6757]) it should fixes #2279, #2288 and some minor changes to #2247