{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc-java/issues/1330","repository_url":"https://api.github.com/repos/grpc/grpc-java","labels_url":"https://api.github.com/repos/grpc/grpc-java/issues/1330/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc-java/issues/1330/comments","events_url":"https://api.github.com/repos/grpc/grpc-java/issues/1330/events","html_url":"https://github.com/grpc/grpc-java/issues/1330","id":127790489,"number":1330,"title":"Receiving ClosedChannelException instead of actual error","user":{"login":"ejona86","id":2811396,"avatar_url":"https://avatars.githubusercontent.com/u/2811396?v=3","gravatar_id":"","url":"https://api.github.com/users/ejona86","html_url":"https://github.com/ejona86","followers_url":"https://api.github.com/users/ejona86/followers","following_url":"https://api.github.com/users/ejona86/following{/other_user}","gists_url":"https://api.github.com/users/ejona86/gists{/gist_id}","starred_url":"https://api.github.com/users/ejona86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejona86/subscriptions","organizations_url":"https://api.github.com/users/ejona86/orgs","repos_url":"https://api.github.com/users/ejona86/repos","events_url":"https://api.github.com/users/ejona86/events{/privacy}","received_events_url":"https://api.github.com/users/ejona86/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grpc/grpc-java/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/grpc/grpc-java/labels/netty","name":"netty","color":"bfd4f2"},{"url":"https://api.github.com/repos/grpc/grpc-java/labels/P2","name":"P2","color":"e99695"}],"state":"open","locked":false,"assignee":{"login":"buchgr","id":1388179,"avatar_url":"https://avatars.githubusercontent.com/u/1388179?v=3","gravatar_id":"","url":"https://api.github.com/users/buchgr","html_url":"https://github.com/buchgr","followers_url":"https://api.github.com/users/buchgr/followers","following_url":"https://api.github.com/users/buchgr/following{/other_user}","gists_url":"https://api.github.com/users/buchgr/gists{/gist_id}","starred_url":"https://api.github.com/users/buchgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchgr/subscriptions","organizations_url":"https://api.github.com/users/buchgr/orgs","repos_url":"https://api.github.com/users/buchgr/repos","events_url":"https://api.github.com/users/buchgr/events{/privacy}","received_events_url":"https://api.github.com/users/buchgr/received_events","type":"User","site_admin":false},"assignees":[{"login":"buchgr","id":1388179,"avatar_url":"https://avatars.githubusercontent.com/u/1388179?v=3","gravatar_id":"","url":"https://api.github.com/users/buchgr","html_url":"https://github.com/buchgr","followers_url":"https://api.github.com/users/buchgr/followers","following_url":"https://api.github.com/users/buchgr/following{/other_user}","gists_url":"https://api.github.com/users/buchgr/gists{/gist_id}","starred_url":"https://api.github.com/users/buchgr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buchgr/subscriptions","organizations_url":"https://api.github.com/users/buchgr/orgs","repos_url":"https://api.github.com/users/buchgr/repos","events_url":"https://api.github.com/users/buchgr/events{/privacy}","received_events_url":"https://api.github.com/users/buchgr/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/grpc/grpc-java/milestones/6","html_url":"https://github.com/grpc/grpc-java/milestones/1.0","labels_url":"https://api.github.com/repos/grpc/grpc-java/milestones/6/labels","id":1396697,"number":6,"title":"1.0","description":"GA release for gRPC Java","creator":{"login":"hsaliak","id":150108,"avatar_url":"https://avatars.githubusercontent.com/u/150108?v=3","gravatar_id":"","url":"https://api.github.com/users/hsaliak","html_url":"https://github.com/hsaliak","followers_url":"https://api.github.com/users/hsaliak/followers","following_url":"https://api.github.com/users/hsaliak/following{/other_user}","gists_url":"https://api.github.com/users/hsaliak/gists{/gist_id}","starred_url":"https://api.github.com/users/hsaliak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsaliak/subscriptions","organizations_url":"https://api.github.com/users/hsaliak/orgs","repos_url":"https://api.github.com/users/hsaliak/repos","events_url":"https://api.github.com/users/hsaliak/events{/privacy}","received_events_url":"https://api.github.com/users/hsaliak/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":8,"state":"open","created_at":"2015-11-05T23:43:39Z","updated_at":"2016-07-10T18:31:41Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2016-01-20T21:42:20Z","updated_at":"2016-07-10T19:07:02Z","closed_at":null,"body":"We aren't reporting a helpful error in very simple connectivity cases, like the server port is closed. Here is what it looks like when using the interop client against a non-existent server: \r\n\r\n```\r\n$ ./build/install/grpc-interop-testing/bin/test-client\r\nRunning test empty_unary\r\n...\r\nException in thread \"main\" io.grpc.StatusRuntimeException: UNAVAILABLE\r\n        at io.grpc.Status.asRuntimeException(Status.java:431)\r\n        at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:157)\r\n        at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:106)\r\n        at io.grpc.testing.integration.TestServiceGrpc$TestServiceBlockingStub.emptyCall(TestServiceGrpc.java:212)\r\n        at io.grpc.testing.integration.AbstractTransportTest.emptyUnary(AbstractTransportTest.java:164)\r\n        at io.grpc.testing.integration.TestServiceClient.runTest(TestServiceClient.java:220)\r\n        at io.grpc.testing.integration.TestServiceClient.run(TestServiceClient.java:209)\r\n        at io.grpc.testing.integration.TestServiceClient.main(TestServiceClient.java:80)\r\nCaused by: java.nio.channels.ClosedChannelException\r\n```\r\n\r\nIt seems the problem may also impact other, much harder to diagnose, issues like client certificate validation (like in #1327)."},"comment":{"url":"https://api.github.com/repos/grpc/grpc-java/issues/comments/231605286","html_url":"https://github.com/grpc/grpc-java/issues/1330#issuecomment-231605286","issue_url":"https://api.github.com/repos/grpc/grpc-java/issues/1330","id":231605286,"user":{"login":"ejona86","id":2811396,"avatar_url":"https://avatars.githubusercontent.com/u/2811396?v=3","gravatar_id":"","url":"https://api.github.com/users/ejona86","html_url":"https://github.com/ejona86","followers_url":"https://api.github.com/users/ejona86/followers","following_url":"https://api.github.com/users/ejona86/following{/other_user}","gists_url":"https://api.github.com/users/ejona86/gists{/gist_id}","starred_url":"https://api.github.com/users/ejona86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ejona86/subscriptions","organizations_url":"https://api.github.com/users/ejona86/orgs","repos_url":"https://api.github.com/users/ejona86/repos","events_url":"https://api.github.com/users/ejona86/events{/privacy}","received_events_url":"https://api.github.com/users/ejona86/received_events","type":"User","site_admin":false},"created_at":"2016-07-10T19:07:01Z","updated_at":"2016-07-10T19:07:01Z","body":"Seen again at https://travis-ci.org/grpc/grpc-java/jobs/143414728 (before the additional logging info) (since rebuilt)\r\n```\r\nio.grpc.netty.NettyTransportTest > ping_afterTermination FAILED\r\n    java.lang.AssertionError: expected:<Status{code=UNAVAILABLE, description=null, cause=null}> but was:<Status{code=UNKNOWN, description=null, cause=java.nio.channels.ClosedChannelException}>\r\n```"}}
{"actor":{"display_login":"ejona86"}}