Closed Bug 955078 Opened 11 years ago Closed 7 years ago

Log files often get lost during shutdown

Categories

(Chat Core :: General, defect)

All
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: aleth, Unassigned)

Details

*** Original post on bio 1649 at 2012-08-14 22:48:00 UTC ***

When IB shuts down incorrectly (e.g. because the process is killed during system shutdown), log files of open conversations/MUCs are completely lost (the file still exists, but is of zero length). This can be rather annoying. It would be nice if there was a nonexpensive way of making this less fragile.
*** Original post on bio 1649 at 2013-02-02 14:04:56 UTC ***

I've since confirmed that this doesn't just happen during system shutdowns, it's enough to quit IB with the conversation on hold. It doesn't always happen, but is quite frequent (multiple times a week).

I have no idea how to even begin to try to fix this, but it's pretty bad (frequent data loss).
Severity: normal → major
OS: All → Linux
Summary: Make logs less fragile under incorrect shutdowns → Log files often get lost during shutdown
*** Original post on bio 1649 at 2013-08-02 17:58:53 UTC ***

Less frequent than it used to be, but something like a power cut seems to cause it.
*** Original post on bio 1649 at 2013-08-08 14:00:51 UTC ***

Any idea of what could be causing it? Is it that after an unclean shutdown your OS truncates all the files that were open for writing and never closed?
Should we close the log files after a short period of inactivity and reopen the same file if the conversation resumes?
This was on a network drive. It has to do with how files are written I think.
Here are some ideas and explanations for how to get around this problem: http://dutherenverseauborddelatable.wordpress.com/2014/02/05/is-my-data-on-the-disk-safety-properties-of-os-file-writeatomic/
nhnt11, can this be considered fixed?
Flags: needinfo?(nhnt11)
I think due to the existing shutdown blocker the answer is "yes".
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(nhnt11)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.