Comments (6)
We are seeing this too while trying to replicate the npm registry.
Why is this a fatal error?
https://github.com/iriscouch/follow/blob/master/lib/feed.js#L354-L355
if(! self.pending.wait_timer)
return self.die(new Error('Cannot find wait timer'))
clearTimeout(self.pending.wait_timer)
self.pending.wait_timer = null
Since you are clearing the timeout directly after checking if it's there, shouldn't this be:
if(! self.pending.wait_timer)
clearTimeout(self.pending.wait_timer)
self.pending.wait_timer = null
Doesn't make a lot of sense to me to die if it's not there just before you are going to clear it anyway.
from follow.
@davglass im guessing the assumption is that there is something wrong if that timer has already been cleared or does not exist.
Regardless this module will be refactored as a wrapper around my changes-strem
module once i get some better test coverage. You can checkout the current wip in the refactor
branch. This will solve some of the inconsistencies.
from follow.
We still see this pretty often in our production followers. It doesn't happen often enough to throw the worker into a tailspin, and we use seq-file to restart right where we left off. But still, kinda annoying.
from follow.
ok so the root of this problem is actually due to a new request being created while the feed is paused because the wait_timer
expires and triggers an on_timeout()
-> retry()
in terms of function calls. This causes the resume to cause this particular failure in got_activity()
.
@davglass removing that line does seem reasonable as a stop gap so I will do some testing and publish a new version.
from follow.
this is fixed in v0.11.1
. Removing that actually worked.
from follow.
👍
from follow.
Related Issues (20)
- Basic auth on db_follow fails with Error: getaddrinfo ENOTFOUND
- Auto-scalling multiple instances HOT 2
- Update engines directive in package.json
- `follow` does not follow `skimdb.npmjs.com` to the end HOT 3
- Tests do not pass with node v4.2.6 (stable) and v5
- question: How I can recieve `change` with previous revision of doc? HOT 3
- Database deleted after change
- process crash when using pause() resume() for large database HOT 5
- Use cookie auth with nano and follow HOT 1
- Abandoned? HOT 5
- follow uses older version of 'request' that has a security vulnerability
- How to write mocha unit testcase for db.follow()
- `request` dependency version.
- how to work with self-signed certificates HOT 1
- Specifiying an inexistent filter fails silently
- How many DBs can follow? HOT 2
- Question: how many feed instance can be create?
- Hangs and never resumes
- Support for _selector filter? HOT 1
- it works on local couchdb but not on the remote couchdb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from follow.