{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/561","repository_url":"https://api.github.com/repos/elastic/elasticsearch-js","labels_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/561/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/561/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-js/issues/561/events","html_url":"https://github.com/elastic/elasticsearch-js/issues/561","id":237652183,"number":561,"title":"Call to index never returns","user":{"login":"seanlindo","id":2204776,"avatar_url":"https://avatars0.githubusercontent.com/u/2204776?v=3","gravatar_id":"","url":"https://api.github.com/users/seanlindo","html_url":"https://github.com/seanlindo","followers_url":"https://api.github.com/users/seanlindo/followers","following_url":"https://api.github.com/users/seanlindo/following{/other_user}","gists_url":"https://api.github.com/users/seanlindo/gists{/gist_id}","starred_url":"https://api.github.com/users/seanlindo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seanlindo/subscriptions","organizations_url":"https://api.github.com/users/seanlindo/orgs","repos_url":"https://api.github.com/users/seanlindo/repos","events_url":"https://api.github.com/users/seanlindo/events{/privacy}","received_events_url":"https://api.github.com/users/seanlindo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-21T20:18:09Z","updated_at":"2017-06-21T20:18:09Z","closed_at":null,"body":"I'm using 3 queue workers to process messages of 20 in a loop, indexing one at a time. I'm creating the connection only once per application instance as well.\r\n\r\nFor some reason, the connection appears to die and queue workers stop processing messages. There are no errors and no clues. I've turned on the debugging level for the logs but there is nothing of note, the last logged message is a successful index operation, but then nothing. The entire operation is surrounded by a top level `try/catch`, but that never trips anything either. Are there additional configuration options I should be using?\r\n\r\n##Code\r\n\r\n    import config from 'config'\r\n    import elasticsearch from 'elasticsearch'\r\n\r\n    const connString = config.get('ES.connectionString')\r\n    const es = new elasticsearch.Client({ host: connString, log: 'debug' })\r\n\r\n    module.exports = es\r\n\r\n##Indexing Code\r\n\r\n    for (let document of documents) {\r\n            await client.index({\r\n                index: 'document',\r\n                type: 'compliance',\r\n                id: document.id,\r\n                body: document\r\n            })\r\n        }"}}
{"actor":{"display_login":"seanlindo"}}