{"action":"created","comment":{"url":"https://api.github.com/repos/datastax/csharp-driver/pulls/comments/43733447","id":43733447,"diff_hunk":"@@ -178,5 +178,33 @@ public void Should_Throw_NoHostAvailableException_When_All_Hosts_Down()\n                 testCluster.ResumeNode(2);\n             }\n         }\n+\n+        /// Tests a TimeoutException is raised when all hosts down with default read timeout\n+        ///\n+        /// Should_Abort_After_Default_ReadTimeoutMillis tests that the driver throws a TimeoutException and aborts the \n+        /// query execution when all nodes in the cluster is down, given a the default ReadTimeoutMillis of 12 seconds.\n+        ///\n+        /// @since 3.0.0\n+        /// @jira_ticket CSHARP-362\n+        /// @expected_result A TimeoutException should be raised after 12 seconds.\n+        ///\n+        /// @test_category connection:timeout\n+        [Test]\n+        public void Should_Abort_After_Default_ReadTimeoutMillis()\n+        {\n+            var testCluster = TestClusterManager.GetNonShareableTestCluster(2, 1, true, false);\n+            var builder = Cluster.Builder().AddContactPoint(testCluster.InitialContactPoint);\n+            using (var cluster = builder.Build())\n+            {\n+                var session = cluster.Connect();\n+                //warmup\n+                TestHelper.Invoke(() => session.Execute(\"SELECT key FROM system.local\"), 10);\n+                testCluster.PauseNode(1);\n+                testCluster.PauseNode(2);\n+                Assert.Throws<TimeoutException>(() => session.Execute(\"SELECT key FROM system.local\"));","path":"src/Cassandra.IntegrationTests/Core/ClientTimeoutTests.cs","position":27,"original_position":27,"commit_id":"b38fdbba15248e6fc2836c7325750c286b12b4f4","original_commit_id":"b38fdbba15248e6fc2836c7325750c286b12b4f4","user":{"login":"jorgebay","id":2931196,"avatar_url":"https://avatars.githubusercontent.com/u/2931196?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgebay","html_url":"https://github.com/jorgebay","followers_url":"https://api.github.com/users/jorgebay/followers","following_url":"https://api.github.com/users/jorgebay/following{/other_user}","gists_url":"https://api.github.com/users/jorgebay/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgebay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgebay/subscriptions","organizations_url":"https://api.github.com/users/jorgebay/orgs","repos_url":"https://api.github.com/users/jorgebay/repos","events_url":"https://api.github.com/users/jorgebay/events{/privacy}","received_events_url":"https://api.github.com/users/jorgebay/received_events","type":"User","site_admin":false},"body":"`TimeoutException` is thrown at when the amount of time passed and the `Task` did not complete and can be tuned using `QueryAbortTimeout` (default: 20secs).\r\n\r\nTo test `SocketOptions.ReadTimeoutMillis`,  you should set a lower readtimeout (something that multiplied by the amount of hosts, will be lower than `QueryAbortTimeout`. This situation is already covered in \r\n\r\n- `Should_Throw_OperationTimedOutException_When_Retry_Is_False`: Without retrying the next host, it throws an `OperationTimedOutException`.\r\n- `Should_Throw_NoHostAvailableException_When_All_Hosts_Down`: Retries to the next host, but also times out, it throws a `NoHostAvailableException` with `OperationTimedOutException` as (child) inner errors per host.","created_at":"2015-11-03T10:32:17Z","updated_at":"2015-11-03T10:32:17Z","html_url":"https://github.com/datastax/csharp-driver/pull/158#discussion_r43733447","pull_request_url":"https://api.github.com/repos/datastax/csharp-driver/pulls/158","_links":{"self":{"href":"https://api.github.com/repos/datastax/csharp-driver/pulls/comments/43733447"},"html":{"href":"https://github.com/datastax/csharp-driver/pull/158#discussion_r43733447"},"pull_request":{"href":"https://api.github.com/repos/datastax/csharp-driver/pulls/158"}}},"pull_request":{"url":"https://api.github.com/repos/datastax/csharp-driver/pulls/158","id":49440610,"html_url":"https://github.com/datastax/csharp-driver/pull/158","diff_url":"https://github.com/datastax/csharp-driver/pull/158.diff","patch_url":"https://github.com/datastax/csharp-driver/pull/158.patch","issue_url":"https://api.github.com/repos/datastax/csharp-driver/issues/158","number":158,"state":"open","locked":false,"title":"Use LocalQuorum as default consistency","user":{"login":"jorgebay","id":2931196,"avatar_url":"https://avatars.githubusercontent.com/u/2931196?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgebay","html_url":"https://github.com/jorgebay","followers_url":"https://api.github.com/users/jorgebay/followers","following_url":"https://api.github.com/users/jorgebay/following{/other_user}","gists_url":"https://api.github.com/users/jorgebay/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgebay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgebay/subscriptions","organizations_url":"https://api.github.com/users/jorgebay/orgs","repos_url":"https://api.github.com/users/jorgebay/repos","events_url":"https://api.github.com/users/jorgebay/events{/privacy}","received_events_url":"https://api.github.com/users/jorgebay/received_events","type":"User","site_admin":false},"body":"Also\r\n- Default timeout 12secs CSHARP-362\r\n- Tcp no delay true by default CSHARP-259","created_at":"2015-11-02T14:56:43Z","updated_at":"2015-11-03T10:32:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea42556cf18105cac0de69dd686301eec0380bb6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/datastax/csharp-driver/pulls/158/commits","review_comments_url":"https://api.github.com/repos/datastax/csharp-driver/pulls/158/comments","review_comment_url":"https://api.github.com/repos/datastax/csharp-driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/datastax/csharp-driver/issues/158/comments","statuses_url":"https://api.github.com/repos/datastax/csharp-driver/statuses/b38fdbba15248e6fc2836c7325750c286b12b4f4","head":{"label":"datastax:CSHARP-353","ref":"CSHARP-353","sha":"b38fdbba15248e6fc2836c7325750c286b12b4f4","user":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"repo":{"id":8143458,"name":"csharp-driver","full_name":"datastax/csharp-driver","owner":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datastax/csharp-driver","description":"DataStax .NET Driver for Apache Cassandra","fork":false,"url":"https://api.github.com/repos/datastax/csharp-driver","forks_url":"https://api.github.com/repos/datastax/csharp-driver/forks","keys_url":"https://api.github.com/repos/datastax/csharp-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datastax/csharp-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datastax/csharp-driver/teams","hooks_url":"https://api.github.com/repos/datastax/csharp-driver/hooks","issue_events_url":"https://api.github.com/repos/datastax/csharp-driver/issues/events{/number}","events_url":"https://api.github.com/repos/datastax/csharp-driver/events","assignees_url":"https://api.github.com/repos/datastax/csharp-driver/assignees{/user}","branches_url":"https://api.github.com/repos/datastax/csharp-driver/branches{/branch}","tags_url":"https://api.github.com/repos/datastax/csharp-driver/tags","blobs_url":"https://api.github.com/repos/datastax/csharp-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datastax/csharp-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datastax/csharp-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/datastax/csharp-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datastax/csharp-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/datastax/csharp-driver/languages","stargazers_url":"https://api.github.com/repos/datastax/csharp-driver/stargazers","contributors_url":"https://api.github.com/repos/datastax/csharp-driver/contributors","subscribers_url":"https://api.github.com/repos/datastax/csharp-driver/subscribers","subscription_url":"https://api.github.com/repos/datastax/csharp-driver/subscription","commits_url":"https://api.github.com/repos/datastax/csharp-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/datastax/csharp-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/datastax/csharp-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/datastax/csharp-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/datastax/csharp-driver/contents/{+path}","compare_url":"https://api.github.com/repos/datastax/csharp-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datastax/csharp-driver/merges","archive_url":"https://api.github.com/repos/datastax/csharp-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datastax/csharp-driver/downloads","issues_url":"https://api.github.com/repos/datastax/csharp-driver/issues{/number}","pulls_url":"https://api.github.com/repos/datastax/csharp-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/datastax/csharp-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/datastax/csharp-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datastax/csharp-driver/labels{/name}","releases_url":"https://api.github.com/repos/datastax/csharp-driver/releases{/id}","created_at":"2013-02-11T18:15:01Z","updated_at":"2015-10-30T13:11:55Z","pushed_at":"2015-11-03T09:58:59Z","git_url":"git://github.com/datastax/csharp-driver.git","ssh_url":"git@github.com:datastax/csharp-driver.git","clone_url":"https://github.com/datastax/csharp-driver.git","svn_url":"https://github.com/datastax/csharp-driver","homepage":"","size":25260,"stargazers_count":138,"watchers_count":138,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":11,"forks":103,"open_issues":11,"watchers":138,"default_branch":"master"}},"base":{"label":"datastax:3.0","ref":"3.0","sha":"af9472754ae66a0ea66e8a49a2be5fee4a9d483f","user":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"repo":{"id":8143458,"name":"csharp-driver","full_name":"datastax/csharp-driver","owner":{"login":"datastax","id":573369,"avatar_url":"https://avatars.githubusercontent.com/u/573369?v=3","gravatar_id":"","url":"https://api.github.com/users/datastax","html_url":"https://github.com/datastax","followers_url":"https://api.github.com/users/datastax/followers","following_url":"https://api.github.com/users/datastax/following{/other_user}","gists_url":"https://api.github.com/users/datastax/gists{/gist_id}","starred_url":"https://api.github.com/users/datastax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datastax/subscriptions","organizations_url":"https://api.github.com/users/datastax/orgs","repos_url":"https://api.github.com/users/datastax/repos","events_url":"https://api.github.com/users/datastax/events{/privacy}","received_events_url":"https://api.github.com/users/datastax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/datastax/csharp-driver","description":"DataStax .NET Driver for Apache Cassandra","fork":false,"url":"https://api.github.com/repos/datastax/csharp-driver","forks_url":"https://api.github.com/repos/datastax/csharp-driver/forks","keys_url":"https://api.github.com/repos/datastax/csharp-driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/datastax/csharp-driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/datastax/csharp-driver/teams","hooks_url":"https://api.github.com/repos/datastax/csharp-driver/hooks","issue_events_url":"https://api.github.com/repos/datastax/csharp-driver/issues/events{/number}","events_url":"https://api.github.com/repos/datastax/csharp-driver/events","assignees_url":"https://api.github.com/repos/datastax/csharp-driver/assignees{/user}","branches_url":"https://api.github.com/repos/datastax/csharp-driver/branches{/branch}","tags_url":"https://api.github.com/repos/datastax/csharp-driver/tags","blobs_url":"https://api.github.com/repos/datastax/csharp-driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/datastax/csharp-driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/datastax/csharp-driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/datastax/csharp-driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/datastax/csharp-driver/statuses/{sha}","languages_url":"https://api.github.com/repos/datastax/csharp-driver/languages","stargazers_url":"https://api.github.com/repos/datastax/csharp-driver/stargazers","contributors_url":"https://api.github.com/repos/datastax/csharp-driver/contributors","subscribers_url":"https://api.github.com/repos/datastax/csharp-driver/subscribers","subscription_url":"https://api.github.com/repos/datastax/csharp-driver/subscription","commits_url":"https://api.github.com/repos/datastax/csharp-driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/datastax/csharp-driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/datastax/csharp-driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/datastax/csharp-driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/datastax/csharp-driver/contents/{+path}","compare_url":"https://api.github.com/repos/datastax/csharp-driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/datastax/csharp-driver/merges","archive_url":"https://api.github.com/repos/datastax/csharp-driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/datastax/csharp-driver/downloads","issues_url":"https://api.github.com/repos/datastax/csharp-driver/issues{/number}","pulls_url":"https://api.github.com/repos/datastax/csharp-driver/pulls{/number}","milestones_url":"https://api.github.com/repos/datastax/csharp-driver/milestones{/number}","notifications_url":"https://api.github.com/repos/datastax/csharp-driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/datastax/csharp-driver/labels{/name}","releases_url":"https://api.github.com/repos/datastax/csharp-driver/releases{/id}","created_at":"2013-02-11T18:15:01Z","updated_at":"2015-10-30T13:11:55Z","pushed_at":"2015-11-03T09:58:59Z","git_url":"git://github.com/datastax/csharp-driver.git","ssh_url":"git@github.com:datastax/csharp-driver.git","clone_url":"https://github.com/datastax/csharp-driver.git","svn_url":"https://github.com/datastax/csharp-driver","homepage":"","size":25260,"stargazers_count":138,"watchers_count":138,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":11,"forks":103,"open_issues":11,"watchers":138,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/datastax/csharp-driver/pulls/158"},"html":{"href":"https://github.com/datastax/csharp-driver/pull/158"},"issue":{"href":"https://api.github.com/repos/datastax/csharp-driver/issues/158"},"comments":{"href":"https://api.github.com/repos/datastax/csharp-driver/issues/158/comments"},"review_comments":{"href":"https://api.github.com/repos/datastax/csharp-driver/pulls/158/comments"},"review_comment":{"href":"https://api.github.com/repos/datastax/csharp-driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/datastax/csharp-driver/pulls/158/commits"},"statuses":{"href":"https://api.github.com/repos/datastax/csharp-driver/statuses/b38fdbba15248e6fc2836c7325750c286b12b4f4"}}}}