Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignore rename events from fs.watch #5

Merged
merged 2 commits into from Apr 15, 2015
Merged

ignore rename events from fs.watch #5

merged 2 commits into from Apr 15, 2015

Conversation

keis
Copy link
Owner

@keis keis commented Apr 14, 2015

just ignoring the renames seems to be a pretty sane thing for now.

ping @JoakimLofgren

@keis keis force-pushed the rename branch 4 times, most recently from 5f7e31b to db59278 Compare April 15, 2015 07:01
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 870b394 on rename into d1328af on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 101548e on rename into d1328af on master.

@keis keis changed the title corner cases ignore rename events from fs.watch Apr 15, 2015
@keis keis force-pushed the rename branch 4 times, most recently from 18a5711 to d0b9a55 Compare April 15, 2015 12:36
To avoid trying to read a file after receiving the event notifying it
was removed anything other than 'change' from fs.watch does not start a
new read. The cached data is still invalidated as usual though.
On slower machines (such as the tests slaves of travis) the debounce
will sometimes not reduce all events of a unlink to one call. This is
can lead to weird effects as the first event is a 'change' which
triggers an unexpected read.

For now force a longer debounce when running tests
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f4500ba on rename into d1328af on master.

keis added a commit that referenced this pull request Apr 15, 2015
ignore rename events from fs.watch
@keis keis merged commit 932e8ac into master Apr 15, 2015
@JoakimLofgren
Copy link

👍

@keis keis deleted the rename branch April 15, 2015 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants