I am setting the deadline for my gRPC call as 5ms using the following code:
stub.withDeadlineAfter(5L, TimeUnit.MILLISECONDS) .doSomething();
However, I am receiving a DEADLINE_EXCEEDED error message with the following details:
DEADLINE_EXCEEDED: ClientCall started after CallOptions deadline was exceeded. Deadline has been exceeded for 0.012145204s.
The error message indicates that the deadline was exceeded by approximately 12ms, which is longer than the specified 5ms.
What could be causing this additional delay ?