File input on Windows prevents log rolling because the handle is locked

Description

The file input keeps the file open between reads, which causes the handle to be locked on Windows. This prevents renaming or deleting of the file, which prevents file rotation. A mitigation is to patch the filewatch gem to close the file between each read cycle, which reduces the locking window. The correct fix would be to open the file in read-only / shared mode, which doesn't seem to be a concept available in ruby.

See also: LOGSTASH-394, which is the same unresolved issue...

testing discovered

Gliffy Diagrams

Activity

Show:

Hans-Peter Störr February 28, 2014 at 8:08 AM

Duplicate of .

Duplicate

Details

Assignee

Reporter

Affects versions

Created June 4, 2013 at 5:55 PM
Updated March 5, 2014 at 5:28 PM
Resolved March 5, 2014 at 5:28 PM