{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-documentdb-python/issues/31","labels_url":"https://api.github.com/repos/Azure/azure-documentdb-python/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-documentdb-python/issues/31/comments","events_url":"https://api.github.com/repos/Azure/azure-documentdb-python/issues/31/events","html_url":"https://github.com/Azure/azure-documentdb-python/issues/31","id":116463511,"number":31,"title":"Query request retry policy may not be working","user":{"login":"rbcarson","id":46059,"avatar_url":"https://avatars.githubusercontent.com/u/46059?v=3","gravatar_id":"","url":"https://api.github.com/users/rbcarson","html_url":"https://github.com/rbcarson","followers_url":"https://api.github.com/users/rbcarson/followers","following_url":"https://api.github.com/users/rbcarson/following{/other_user}","gists_url":"https://api.github.com/users/rbcarson/gists{/gist_id}","starred_url":"https://api.github.com/users/rbcarson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbcarson/subscriptions","organizations_url":"https://api.github.com/users/rbcarson/orgs","repos_url":"https://api.github.com/users/rbcarson/repos","events_url":"https://api.github.com/users/rbcarson/events{/privacy}","received_events_url":"https://api.github.com/users/rbcarson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-12T02:02:51Z","updated_at":"2016-02-01T01:08:58Z","closed_at":null,"body":"It looks like ResourceThrottleRetryPolicy in backoff_retry_utility.py is used in QueryIterable to provide automatic retry for the various querying methods in DocumentClient (but nowhere else yet). I suspect that it doesn't work though: [backoff_retry_utility.py#L69](https://github.com/Azure/azure-documentdb-python/blob/master/pydocumentdb/backoff_retry_utility.py#L69) tries to access member `retry_after_in_milliseconds` on the caught exception, but no such member exists on any subclass of `DocumentDBError`."},"comment":{"url":"https://api.github.com/repos/Azure/azure-documentdb-python/issues/comments/177682079","html_url":"https://github.com/Azure/azure-documentdb-python/issues/31#issuecomment-177682079","issue_url":"https://api.github.com/repos/Azure/azure-documentdb-python/issues/31","id":177682079,"user":{"login":"xou","id":214978,"avatar_url":"https://avatars.githubusercontent.com/u/214978?v=3","gravatar_id":"","url":"https://api.github.com/users/xou","html_url":"https://github.com/xou","followers_url":"https://api.github.com/users/xou/followers","following_url":"https://api.github.com/users/xou/following{/other_user}","gists_url":"https://api.github.com/users/xou/gists{/gist_id}","starred_url":"https://api.github.com/users/xou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xou/subscriptions","organizations_url":"https://api.github.com/users/xou/orgs","repos_url":"https://api.github.com/users/xou/repos","events_url":"https://api.github.com/users/xou/events{/privacy}","received_events_url":"https://api.github.com/users/xou/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T01:08:58Z","updated_at":"2016-02-01T01:08:58Z","body":"If you're interested, i've hacked together a testcase for approach 2 here:\r\n\r\nhttps://gist.github.com/xou/f97547b98a38ea8e8f03\r\n\r\nThe \"on continuation\" testcase fails with the old version, and succeeds with the PR applied. The \"fail immediately\" testcase fails in both versions, unsure where the problem is exactly (can look into it later)."}}