GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Publishing to pub/sub works unstable · Issue #3175 · googleapis/google-cloud-java

Publishing to pub/sub works unstable #3175

New issue
Copy link
New issue
Copy link
Closed
Closed
Publishing to pub/sub works unstable#3175
Copy link
Assignees
pkletsko

Description

@pkletsko
pkletsko
opened on Apr 20, 2018
Issue body actions

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 loop is 1000 I see console output of ids (workds fine)
but with 10000 I already got error:

Exception in thread "main" java.util.concurrent.ExecutionException: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 9999958540ns
	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:500)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:479)
	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:76)
	at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:62)
	at TestRunKt.main(TestRun.kt:81)
Caused by: com.google.api.gax.rpc.DeadlineExceededException: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 9999958540ns
	at com.google.api.gax.rpc.ApiExceptionFactory.createException(ApiExceptionFactory.java:51)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:72)
	at com.google.api.gax.grpc.GrpcApiExceptionFactory.create(GrpcApiExceptionFactory.java:60)
	at com.google.api.gax.grpc.GrpcExceptionCallable$ExceptionTransformingFuture.onFailure(GrpcExceptionCallable.java:95)
	at com.google.api.core.ApiFutures$1.onFailure(ApiFutures.java:61)
	at com.google.common.util.concurrent.Futures$4.run(Futures.java:1123)
	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:435)
	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:900)
	at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:811)
	at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:675)
	at io.grpc.stub.ClientCalls$GrpcFuture.setException(ClientCalls.java:492)
	at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:467)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)
	at io.grpc.internal.CensusStatsModule$StatsClientInterceptor$1$1.onClose(CensusStatsModule.java:684)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:41)
	at io.grpc.internal.CensusTracingModule$TracingClientInterceptor$1$1.onClose(CensusTracingModule.java:391)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:475)
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:63)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:557)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:478)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:590)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 9999958540ns
	at io.grpc.Status.asRuntimeException(Status.java:526)
	... 19 more

If I decrease message size to 16 byte I can send successfully 10000 or 100 000 messages without any problems.

Can you explain me the problem and help to find the solution.

My main goal is to send millions of messages with as said in spec not more then 10Mb size.
Thanks

Activity

  1. pkletsko commented on Apr 30, 2018

    @pkletsko
    pkletsko
    on Apr 30, 2018
    Author
    More actions

    I have found an answer on my question. I have used wifi (200 Mbit) on my mac which obviously have limits how fast and how much it is possible to send. Just one try with 1Gbit cable showed that it is possible to send fast and stable of course batch strategy and retry mechanism should be applied. But over all it is clear what was wrong. I think it would be nice to see some benchmarks in documentation.

  2. pkletsko
    closed this as completedon Apr 30, 2018
  3. JustinBeckwith
    assigned
    pkletsko
    on Feb 1, 2021
  4. chingor13
    added a commit that references this issue on Feb 3, 2026

    chore(main): release 3.19.2-SNAPSHOT (#3175)

    d87e748
  5. suztomo
    added a commit that references this issue on Mar 9, 2026

    test(deps): update dependency com.google.truth:truth to v1.4.2 (#3175)

    39b5f27
  6. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore(main): release 3.19.2-SNAPSHOT (#3175)

    ffab5a6
  7. chingor13
    added 3 commits that reference this issue on Mar 24, 2026

    deps: update dependency filelock to v3.16.0 (#3175)

    2091eba

    chore(main): release 2.45.0 (#3139)

    fbf904c

    chore(deps): update storage release dependencies to v2.53.2 (#3175)

    2ab21a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @pkletsko
    pkletsko

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.