{"action":"created","issue":{"url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/issues/151","labels_url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/issues/151/comments","events_url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/issues/151/events","html_url":"https://github.com/doctrine/DoctrineMongoODMModule/pull/151","id":111574874,"number":151,"title":"Add a sensible retry config","user":{"login":"ddxor","id":7305588,"avatar_url":"https://avatars.githubusercontent.com/u/7305588?v=3","gravatar_id":"","url":"https://api.github.com/users/ddxor","html_url":"https://github.com/ddxor","followers_url":"https://api.github.com/users/ddxor/followers","following_url":"https://api.github.com/users/ddxor/following{/other_user}","gists_url":"https://api.github.com/users/ddxor/gists{/gist_id}","starred_url":"https://api.github.com/users/ddxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddxor/subscriptions","organizations_url":"https://api.github.com/users/ddxor/orgs","repos_url":"https://api.github.com/users/ddxor/repos","events_url":"https://api.github.com/users/ddxor/events{/privacy}","received_events_url":"https://api.github.com/users/ddxor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T09:10:26Z","updated_at":"2015-10-15T09:12:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/pulls/151","html_url":"https://github.com/doctrine/DoctrineMongoODMModule/pull/151","diff_url":"https://github.com/doctrine/DoctrineMongoODMModule/pull/151.diff","patch_url":"https://github.com/doctrine/DoctrineMongoODMModule/pull/151.patch"},"body":"The MongoDB service will internally expire connections without the client Mongo driver ever knowing about it. If we have a retry of 0 then when this happens (it happened with us in prod before we realised this is what was going on) we get 'random' fatals which we have to programatically handle throughout our application.\r\n\r\nIt makes more sense to have a retry default of > 0, so that when Mongo connections are expired internally, they can be re-established without needing to deal with a fatal."},"comment":{"url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/issues/comments/148326742","html_url":"https://github.com/doctrine/DoctrineMongoODMModule/pull/151#issuecomment-148326742","issue_url":"https://api.github.com/repos/doctrine/DoctrineMongoODMModule/issues/151","id":148326742,"user":{"login":"ddxor","id":7305588,"avatar_url":"https://avatars.githubusercontent.com/u/7305588?v=3","gravatar_id":"","url":"https://api.github.com/users/ddxor","html_url":"https://github.com/ddxor","followers_url":"https://api.github.com/users/ddxor/followers","following_url":"https://api.github.com/users/ddxor/following{/other_user}","gists_url":"https://api.github.com/users/ddxor/gists{/gist_id}","starred_url":"https://api.github.com/users/ddxor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddxor/subscriptions","organizations_url":"https://api.github.com/users/ddxor/orgs","repos_url":"https://api.github.com/users/ddxor/repos","events_url":"https://api.github.com/users/ddxor/events{/privacy}","received_events_url":"https://api.github.com/users/ddxor/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T09:12:30Z","updated_at":"2015-10-15T09:12:30Z","body":"This change will also help in the event of transient network conditions. (Fallacies of distributed computing?)\r\n\r\nObviously you can override this with 'retryConnect' and 'retryQuery' in configuration, but a sane default makes sense."}}