{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/13958","repository_url":"https://api.github.com/repos/grpc/grpc","labels_url":"https://api.github.com/repos/grpc/grpc/issues/13958/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/13958/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/13958/events","html_url":"https://github.com/grpc/grpc/issues/13958","id":287193511,"node_id":"MDU6SXNzdWUyODcxOTM1MTE=","number":13958,"title":"Server is busy looping on shutdown.","user":{"login":"alexvy86","id":716334,"node_id":"MDQ6VXNlcjcxNjMzNA==","avatar_url":"https://avatars1.githubusercontent.com/u/716334?v=4","gravatar_id":"","url":"https://api.github.com/users/alexvy86","html_url":"https://github.com/alexvy86","followers_url":"https://api.github.com/users/alexvy86/followers","following_url":"https://api.github.com/users/alexvy86/following{/other_user}","gists_url":"https://api.github.com/users/alexvy86/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvy86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvy86/subscriptions","organizations_url":"https://api.github.com/users/alexvy86/orgs","repos_url":"https://api.github.com/users/alexvy86/repos","events_url":"https://api.github.com/users/alexvy86/events{/privacy}","received_events_url":"https://api.github.com/users/alexvy86/received_events","type":"User","site_admin":false},"labels":[{"id":166332702,"node_id":"MDU6TGFiZWwxNjYzMzI3MDI=","url":"https://api.github.com/repos/grpc/grpc/labels/area/core","name":"area/core","color":"efdb40","default":false},{"id":155504842,"node_id":"MDU6TGFiZWwxNTU1MDQ4NDI=","url":"https://api.github.com/repos/grpc/grpc/labels/kind/bug","name":"kind/bug","color":"93732c","default":false},{"id":168238370,"node_id":"MDU6TGFiZWwxNjgyMzgzNzA=","url":"https://api.github.com/repos/grpc/grpc/labels/lang/C%23","name":"lang/C#","color":"fad8c7","default":false},{"id":360790193,"node_id":"MDU6TGFiZWwzNjA3OTAxOTM=","url":"https://api.github.com/repos/grpc/grpc/labels/priority/P2","name":"priority/P2","color":"dd7172","default":false}],"state":"closed","locked":false,"assignee":{"login":"sreecha","id":2754995,"node_id":"MDQ6VXNlcjI3NTQ5OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2754995?v=4","gravatar_id":"","url":"https://api.github.com/users/sreecha","html_url":"https://github.com/sreecha","followers_url":"https://api.github.com/users/sreecha/followers","following_url":"https://api.github.com/users/sreecha/following{/other_user}","gists_url":"https://api.github.com/users/sreecha/gists{/gist_id}","starred_url":"https://api.github.com/users/sreecha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreecha/subscriptions","organizations_url":"https://api.github.com/users/sreecha/orgs","repos_url":"https://api.github.com/users/sreecha/repos","events_url":"https://api.github.com/users/sreecha/events{/privacy}","received_events_url":"https://api.github.com/users/sreecha/received_events","type":"User","site_admin":false},"assignees":[{"login":"sreecha","id":2754995,"node_id":"MDQ6VXNlcjI3NTQ5OTU=","avatar_url":"https://avatars1.githubusercontent.com/u/2754995?v=4","gravatar_id":"","url":"https://api.github.com/users/sreecha","html_url":"https://github.com/sreecha","followers_url":"https://api.github.com/users/sreecha/followers","following_url":"https://api.github.com/users/sreecha/following{/other_user}","gists_url":"https://api.github.com/users/sreecha/gists{/gist_id}","starred_url":"https://api.github.com/users/sreecha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreecha/subscriptions","organizations_url":"https://api.github.com/users/sreecha/orgs","repos_url":"https://api.github.com/users/sreecha/repos","events_url":"https://api.github.com/users/sreecha/events{/privacy}","received_events_url":"https://api.github.com/users/sreecha/received_events","type":"User","site_admin":false}],"milestone":null,"comments":12,"created_at":"2018-01-09T18:55:36Z","updated_at":"2018-07-26T03:02:47Z","closed_at":"2018-07-25T22:44:47Z","author_association":"NONE","body":"When letting a GRPC server shut down cleanly, I'm seeing a barrage of errors when `GRPC_TRACE` includes `op_failure`.\r\n \r\n### What version of gRPC and what language are you using?\r\n1.8.3, C# \r\n \r\n### What operating system (Linux, Windows, …) and version?\r\nWindows 10 Pro 1709, and also happens on Docker containers on Ubuntu 16.04.2 LTS.\r\n \r\n### What runtime / compiler are you using (e.g. python version or version of gcc)\r\nUsing the C# libraries.\r\n \r\n### What did you do?\r\nSimplest repro: ran the Greeter sample application with `GRPC_TRACE` set to `op_failure` and pressed Enter to stop the GreeterServer. \r\n \r\n### What did you expect to see?\r\n~~No errors. I just started the server, established no connections to it, and let it shutdown.~~\r\nPer @nicolasnoble's comments below, seeing a couple of errors in the trace is probably expected, as long as they don't surface in the API. But not 3000+ copies of the same error, like we're seeing right now.\r\n \r\n### What did you see instead?\r\nA flood (3000+) of errors, all the same message:\r\n`E0109 12:50:21.757118 0 C:\\jenkins\\workspace\\gRPC_build_artifacts\\platform\\windows\\workspace_csharp_ext_windows_x64\\src\\core\\lib\\surface\\completion_queue.cc:659: Operation failed: tag=000001DD27F487A0, error={\"created\":\"@1515523821.047000000\",\"description\":\"Server Shutdown\",\"file\":\"C:\\jenkins\\workspace\\gRPC_build_artifacts\\platform\\windows\\workspace_csharp_ext_windows_x64\\src\\core\\lib\\surface\\server.cc\",\"file_line\":1249}`\r\n \r\n### Anything else we should know about your project / environment?\r\nAs stated above, I'm seeing this when running the app directly on a Windows host, or inside Linux docker containers. ~~[Here](https://github.com/alexvy86/grpc/tree/infinite-server-errors)'s a fork of the sample app with GRPC_TRACE set. Just run the GreeterServer app from Visual Studio and press ENTER.~~ broken after rebase on top of upstream's latest changes, new link in the most recent comment.\r\n"},"comment":{"url":"https://api.github.com/repos/grpc/grpc/issues/comments/407961268","html_url":"https://github.com/grpc/grpc/issues/13958#issuecomment-407961268","issue_url":"https://api.github.com/repos/grpc/grpc/issues/13958","id":407961268,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzk2MTI2OA==","user":{"login":"alexvy86","id":716334,"node_id":"MDQ6VXNlcjcxNjMzNA==","avatar_url":"https://avatars1.githubusercontent.com/u/716334?v=4","gravatar_id":"","url":"https://api.github.com/users/alexvy86","html_url":"https://github.com/alexvy86","followers_url":"https://api.github.com/users/alexvy86/followers","following_url":"https://api.github.com/users/alexvy86/following{/other_user}","gists_url":"https://api.github.com/users/alexvy86/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvy86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvy86/subscriptions","organizations_url":"https://api.github.com/users/alexvy86/orgs","repos_url":"https://api.github.com/users/alexvy86/repos","events_url":"https://api.github.com/users/alexvy86/events{/privacy}","received_events_url":"https://api.github.com/users/alexvy86/received_events","type":"User","site_admin":false},"created_at":"2018-07-26T03:02:47Z","updated_at":"2018-07-26T03:02:47Z","author_association":"NONE","body":"Getting allocation out of the critical path makes sense... although it still feels like that could be done without the need for \"outstanding call requests\", or needing the caller to know/estimate how many calls it expects. Anyway, I know this is not the place to question the API of something written by Google to handle their workloads, and the original question was already answered so I'll leave it at that. Thanks to both of you for the explanations!"}}
{"actor":{"display_login":"alexvy86"}}