kocolosk commented on issue #548: [Jenkins] 500 error on getting view output URL: https://github.com/apache/couchdb/issues/548#issuecomment-310491549 I think I know what's happening here. Every `db.query()` invocation in this test creates a ddoc with a random name, queries the view, and then deletes the ddoc. In many cases we have consecutive invocations where the ddocs have the same computed signature. It looks like we're hitting a race condition where we request to delete a ddoc, the server starts closing all the associated indexes, we create a new one with the same sig, the coordinator grabs an Fd from the cache with that sig, and the Fd is closed underneath it during the response. I tested this theory by adding a random string to each view, and so far I've looped through 40 consecutive runs without a failure. That's of course not fixing the real race condition, but if we can't track down the race condition in short order it might be a useful hack to stop the flakiness. It wouldn't be the first time, and this is not really a bug you'd expect to encounter in production ... ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
