-
Notifications
You must be signed in to change notification settings - Fork 138
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
Sync Gateway crashes while processing webhook events #810
Comments
Can you share a link to your testing code? |
Hi Adam, I'm using sync-gateway-tests repo
|
Also please overwrite the sync-gateway-tests/config/admin_party.json file in with this file: |
Reviewed in detail with Ashvinder, but we weren't able to reproduce a SG crash. Ashvinder took action item to identify better steps to reproduce, and to provide the full SG log if he's able to repro. |
The crash does not occur with latest release of 1.1.0-12. |
Verified the issue does not occur by generating 10 k documents with 10 revisions each. |
Scenario:
"event_handlers": {"document_changed":[{"handler":"webhook","max_processes" : 500,"wait_for_process" : "600000","url":"http://testServer:port","timeout":60}] }
After sending webhook events for 5K documents. the SG crashes. All the documents have been replicated to SG.
Here is the snippet from the SG logs:
2015-04-28T18:05:29.894-07:00 WARNING: Error attempting to post to url http://172.23.105.219:9091: Post http://172.23.105.219:9091: dial tcp 172.23.105.219:9091: too many open files -- db.(_Webhook).HandleEvent() at event_handler.go:97
2015-04-28T18:05:29.894-07:00 WARNING: Error attempting to post to url http://172.23.105.219:9091: Post http://172.23.105.219:9091: dial tcp 172.23.105.219:9091: too many open files -- db.(_Webhook).HandleEvent() at event_handler.go:97
2015-04-28T18:05:29.894-07:00 CRUD: Stored doc "api-revision1_9998" / "1-46d14cc5eea4aa91c14b208ca7698687"
2015-04-28T18:05:29.894-07:00 CRUD: Stored doc "api-revision1_9998" / "1-46d14cc5eea4aa91c14b208ca7698687"
2015-04-28T18:05:29.894-07:00 WARNING: Error attempting to post to url http://172.23.105.219:9091: Post http://172.23.105.219:9091: dial tcp 172.23.105.219:9091: too many open files -- db.(_Webhook).HandleEvent() at event_handler.go:97
2015-04-28T18:05:29.894-07:00 WARNING: Error attempting to post to url http://172.23.105.219:9091: Post http://172.23.105.219:9091: dial tcp 172.23.105.219:9091: too many open files -- db.(_Webhook).HandleEvent() at event_handler.go:97
2015-04-28T18:05:29.894-07:00 CRUD: Stored doc "api-revision1_9999" / "1-46d14cc5eea4aa91c14b208ca7698687"
2015-04-28T18:05:29.894-07:00 CRUD: Stored doc "api-revision1_9999" / "1-46d14cc5eea4aa91c14b208ca7698687"
2015-04-28T18:05:29.894-07:00 WARNING: Error attempting to post to url http://172.23.105.219:9091: Post http://172.23.105.219:9091: dial tcp 172.23.105.219:9091: too many open files -- db.(_Webhook).HandleEvent() at event_handler.go:97
2015-04-28T18:05:29.894-07:00 WARNING: Error attempting to post to url http://172.23.105.219:9091: Post http://172.23.105.219:9091: dial tcp 172.23.105.219:9091: too many open files -- db.(_Webhook).HandleEvent() at event_handler.go:97
2015-04-28T18:05:29.895-07:00 HTTP+: #208: --> 201 (15.8 ms)
2015-04-28T18:05:29.895-07:00 HTTP+: #208: --> 201 (15.8 ms)
2015-04-28T18:05:32.646-07:00 HTTP: #209: PUT /db/_local/110322b00ab9dc4b74f89d2dd523a982f207535c
2015-04-28T18:05:32.646-07:00 HTTP: #209: PUT /db/_local/110322b00ab9dc4b74f89d2dd523a982f207535c
2015-04-28T18:05:32.646-07:00 HTTP+: #209: --> 201 (0.2 ms)
2015-04-28T18:05:32.646-07:00 HTTP+: #209: --> 201 (0.2 ms)
2015/04/28 18:05:32 http: Accept error: accept tcp [::]:9888: too many open files; retrying in 5ms
2015/04/28 18:05:32 http: Accept error: accept tcp [::]:9888: too many open files; retrying in 5ms
verify replicated num-docs=10000
not ok 10006 failed to get db info from http://localhost:9888/db/_all_docs: Error: read ECONNRESET
The text was updated successfully, but these errors were encountered: