Deadline exceeded exception. What does it mean?

Hi,

So I am getting an exception, and I dont understand what it means. Could some help please ?

2021-08-25 11:52:33.219  WARN 23801 --- [ault-executor-0] io.camunda.zeebe.client.job.poller       : Failed to activated jobs for worker temp-worker and job type pac

io.grpc.StatusRuntimeException: DEADLINE_EXCEEDED: deadline exceeded after 19.997781469s. [remote_addr=/127.0.0.1:26500]
	at io.grpc.Status.asRuntimeException(Status.java:535) ~[grpc-api-1.38.1.jar:1.38.1]
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:478) ~[grpc-stub-1.38.1.jar:1.38.1]
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:553) ~[grpc-core-1.38.1.jar:1.38.1]
	at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:68) ~[grpc-core-1.38.1.jar:1.38.1]
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:739) ~[grpc-core-1.38.1.jar:1.38.1]
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:718) ~[grpc-core-1.38.1.jar:1.38.1]
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37) ~[grpc-core-1.38.1.jar:1.38.1]
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123) ~[grpc-core-1.38.1.jar:1.38.1]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
	at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]

Hmm I do not see any affect on the working of the worker though . so is it just the behavior of long polling that it throws an exception if nothing found ?

1 Like

Yes, this is the meaning of DEADLINE_EXCEPTION.

Alright! Stupid question why its an uncaught exception and why not just a normal INFO log about it ? :slight_smile:

Also just a small nit: it should be ‘Failed to activate jobs’ not ‘ Failed to activated jobs’ I think :slightly_smiling_face:

1 Like