WindowsAzure/azure-sdk-for-net — pull request #105 by almazik (2012-08-01 13:16:52+00:00)
Title: Retrying the query segment when network response is slow

The issue (with reproduction) is described here: http://social.msdn.microsoft.com/Forums/en-US/windowsazuredata/thread/bbec1eef-60b1-4daa-8f7a-da8c28974534

The bug is caused by StorageClientException thrown when it takes more than 2 minutes to download query results (as a workaround for bug RDBUG:27062 as described in comments, not sure what does that mean). Since StorageClientException is not retried using RetryPolicy it causes the full query to fail with this exception.

Suggested solution is to throw StorageServerException instead of StorageClientException. It will allow to re-use existing retry logic that is aware of StorageServerException, and also it looks like a more appropriate exception (response from server takes too much time).