Failure to start workflow if WorkflowClient left idle

We have an endpoint which can be called to trigger temporal workflows via the WorkflowClient. We have made sure that all requests use the same instance of the WorkflowClient.

We have found that if the endpoint has not received a request for a period of time e.g. overnight, when it is next called it fails with the following error:

Caused by: io.grpc.StatusRuntimeException: INTERNAL: Panic! This is a bug!
	at io.grpc.stub.ClientCalls.toStatusRuntimeException(
	at io.grpc.stub.ClientCalls.getUnchecked(
	at io.grpc.stub.ClientCalls.blockingUnaryCall(
	at io.temporal.api.workflowservice.v1.WorkflowServiceGrpc$WorkflowServiceBlockingStub.startWorkflowExecution(
	at io.temporal.internal.external.GenericWorkflowClientExternalImpl.lambda$start$0(
	at io.temporal.internal.retryer.GrpcSyncRetryer.retry(
	at io.temporal.internal.retryer.GrpcRetryer.retryWithResult(
	at io.temporal.internal.external.GenericWorkflowClientExternalImpl.start(
	at io.temporal.internal.client.RootWorkflowClientInvoker.start(
	at io.temporal.internal.sync.WorkflowStubImpl.startWithOptions(
	... 39 more
Caused by: java.lang.IllegalStateException: nameResolver is not started
	at io.grpc.internal.ManagedChannelImpl.shutdownNameResolverAndLoadBalancer(
	at io.grpc.internal.ManagedChannelImpl.enterIdleMode(
	at io.grpc.internal.ManagedChannelImpl.access$900(
	at io.grpc.internal.ManagedChannelImpl$
	at io.grpc.internal.Rescheduler$
	at io.grpc.SynchronizationContext.drain(
	at io.grpc.SynchronizationContext.execute(
	at io.grpc.internal.Rescheduler$
	... 1 more

Based on the stacktrace it looks as though there is something that is entering an idle mode. This issue is non-recoverable and the pod in kubernetes must be restarted to resolve the issue.

Is this a known issue and are there config settings that can be updated to avoid this issue from occuring?

There was an issue reported for this is java sdk here.
Original cause is grpc-java issue here.

What is the Java SDK version you are using?
The temp fix was included in 1.6.0.

The jdk details are:

openjdk version "1.8.0_332"
OpenJDK Runtime Environment (build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode)

Thanks, I was asking for the Temporal Java SDK version you are using.

Sorry @tihomir , I realized when I re-read your response. We are using 1.5.0 of the temporal-sdk. Sounds like we just need to upgrade this.