davidmoten / rxjava-file

RxJava observables for files including NIO events
Apache License 2.0
82 stars 17 forks source link

FileObservable.tailFile should detect Delete events #2

Closed davidmoten closed 10 years ago

davidmoten commented 10 years ago

If a file was removed or deleted (say with a log file rollover) and instantly created and written to so that the length was greater than the original length then we want all the new lines to be streamed. To do this OperatorFileTailer needs to detect file deletion events.

davidmoten commented 10 years ago

test is non-deterministic, failing most of the time

davidmoten commented 10 years ago

Fixed by commit a9a97db2f9a9d2cc70c3d7b88053e2f519078622