Title: Publishing to pub/sub works unstable · Issue #3175 · googleapis/google-cloud-java · GitHub
Open Graph Title: Publishing to pub/sub works unstable · Issue #3175 · googleapis/google-cloud-java
X Title: Publishing to pub/sub works unstable · Issue #3175 · googleapis/google-cloud-java
Description: I am using exact example of publish message to pub/sub from https://cloud.google.com/pubsub/docs/publisher with only one small modification my loop looks like : for (i in 1..1000000) and the message has 16kb of text from Wikipedia If loo...
Open Graph Description: I am using exact example of publish message to pub/sub from https://cloud.google.com/pubsub/docs/publisher with only one small modification my loop looks like : for (i in 1..1000000) and the messag...
X Description: I am using exact example of publish message to pub/sub from https://cloud.google.com/pubsub/docs/publisher with only one small modification my loop looks like : for (i in 1..1000000) and the messag...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/3175
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Publishing to pub/sub works unstable","articleBody":"I am using exact example of publish message to pub/sub from https://cloud.google.com/pubsub/docs/publisher\r\n\r\nwith only one small modification \r\nmy loop looks like : ` for (i in 1..1000000)` \r\nand the message has 16kb of text from Wikipedia\r\n\r\nIf loop is 1000 I see console output of ids (workds fine)\r\nbut with 10000 I already got error:\r\n\r\n```\r\nException in thread \"main\" java.util.concurrent.ExecutionException: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 9999958540ns\r\n\tat com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:500)\r\n\tat com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:479)\r\n\tat com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:76)\r\n\tat com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:62)\r\n\tat TestRunKt.main(TestRun.kt:81)\r\nCaused by: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 9999958540ns\r\n\tat com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:51)\r\n\tat com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)\r\n\tat com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)\r\n\tat com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:95)\r\n\tat com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:61)\r\n\tat com.google.common.util.concurrent.Futures$4.run(Futures.java:1123)\r\n\tat com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)\r\n\tat com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:900)\r\n\tat com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:811)\r\n\tat com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:675)\r\n\tat io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:492)\r\n\tat io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)\r\n\tat io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)\r\n\tat io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)\r\n\tat io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)\r\n\tat io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)\r\n\tat io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:475)\r\n\tat io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)\r\n\tat io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:557)\r\n\tat io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:478)\r\n\tat io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:590)\r\n\tat io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)\r\n\tat io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)\r\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\r\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\r\n\tat java.lang.Thread.run(Thread.java:748)\r\nCaused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 9999958540ns\r\n\tat io.grpc.Status.asRuntimeException(Status.java:526)\r\n\t... 19 more\r\n\r\n```\r\n\r\nIf I decrease message size to 16 byte I can send successfully 10000 or 100 000 messages without any problems.\r\n\r\nCan you explain me the problem and help to find the solution. \r\n\r\nMy main goal is to send millions of messages with as said in spec not more then 10Mb size. \r\nThanks\r\n\r\n\r\n","author":{"url":"https://github.com/pkletsko","@type":"Person","name":"pkletsko"},"datePublished":"2018-04-20T07:38:41.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3175/google-cloud-java/issues/3175"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9f80f450-61d4-1179-3edf-b6f041d48872 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C458:20AB3F:135013A:1C1F7BF:6A4CE048 |
| html-safe-nonce | b386c174f306775bfcbd5f97503580b20bc6ef4d6add81f44e036484d8ad3c48 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDU4OjIwQUIzRjoxMzUwMTNBOjFDMUY3QkY6NkE0Q0UwNDgiLCJ2aXNpdG9yX2lkIjoiNjg1ODg1Mzg4MzQ2NjAxNDc5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fcf6145495f8e2ac57597ee435872b2c68c579aa712d76bd07b3bc732b96aeef |
| hovercard-subject-tag | issue:316159722 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/3175/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6eb559f510d6df4f65671ee5d304c9ca9daf6ab83a8b81d76c732aa44497f419/googleapis/google-cloud-java/issues/3175 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6eb559f510d6df4f65671ee5d304c9ca9daf6ab83a8b81d76c732aa44497f419/googleapis/google-cloud-java/issues/3175 |
| og:image:alt | I am using exact example of publish message to pub/sub from https://cloud.google.com/pubsub/docs/publisher with only one small modification my loop looks like : for (i in 1..1000000) and the messag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pkletsko |
| hostname | github.com |
| expected-hostname | github.com |
| None | 299b43bca6e02ad35197ffeba30d2466846d5fb02ab96fbced5b5e6cec589fb8 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3eeb74f55ccd8a31bdaec6839577c592bbf7844c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width