Skip to content

Flaky (DaprJobsIT.testJobScheduleCreationWithAllParameters ) test in SDK integration tests #1367

Open
@salaboy

Description

@salaboy

Expected Behavior

Tests shouldn't be flaky

Error:    DaprJobsIT.testJobScheduleCreationWithAllParameters » Dapr INTERNAL: failed to get job due to: rpc error: code = NotFound desc = job not found: Job

This happened while running the tests on a documentation change PR:

Error:  io.dapr.it.testcontainers.DaprJobsIT.testJobScheduleCreationWithAllParameters -- Time elapsed: 0.021 s <<< ERROR!
io.dapr.exceptions.DaprException: INTERNAL: failed to get job due to: rpc error: code = NotFound desc = job not found: Job
	at io.dapr.exceptions.DaprException.propagate(DaprException.java:350)
	at io.dapr.client.DaprClientImpl$1.onError(DaprClientImpl.java:1513)
	at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:481)
	at io.grpc.PartialForwardingClientCallListener.onClose(PartialForwardingClientCallListener.java:39)
	at io.grpc.ForwardingClientCallListener.onClose(ForwardingClientCallListener.java:23)
	at io.grpc.ForwardingClientCallListener$SimpleForwardingClientCallListener.onClose(ForwardingClientCallListener.java:40)
	at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:564)
	at io.grpc.internal.ClientCallImpl.access$100(ClientCallImpl.java:72)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:729)
	at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:710)
	at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
	at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:133)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)
	Suppressed: java.lang.Exception: #block terminated with an error
		at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:104)
		at reactor.core.publisher.Mono.block(Mono.java:1779)
		at io.dapr.it.testcontainers.DaprJobsIT.testJobScheduleCreationWithAllParameters(DaprJobsIT.java:134)
		at java.base/java.lang.reflect.Method.invoke(Method.java:569)
		at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
		at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: INTERNAL: failed to get job due to: rpc error: code = NotFound desc = job not found: Job
	at io.dapr.internal.exceptions.DaprHttpException.fromGrpcExecutionException(DaprHttpException.java:66)
	... 14 more
Caused by: io.grpc.StatusRuntimeException: INTERNAL: failed to get job due to: rpc error: code = NotFound desc = job not found: Job
	at io.grpc.Status.asRuntimeException(Status.java:532)
	... 13 more

Actual Behavior

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions