Skip to content

Regression

org.eclipse.ditto.connectivity.service.messaging.amqp.AmqpClientActorTest.testConsumeMessageForSourcesWithSameAddress

Failing for the past 1 build (Since #1613 )
Took 3.5 sec.

Error Message

assertion failed: timeout (3 seconds) during expectMsgClass waiting for interface org.eclipse.ditto.base.model.signals.commands.Command

Stacktrace

java.lang.AssertionError: assertion failed: timeout (3 seconds) during expectMsgClass waiting for interface org.eclipse.ditto.base.model.signals.commands.Command
	at scala.Predef$.assert(Predef.scala:279)
	at org.apache.pekko.testkit.TestKitBase.expectMsgClass_internal(TestKit.scala:582)
	at org.apache.pekko.testkit.TestKitBase.expectMsgClass(TestKit.scala:569)
	at org.apache.pekko.testkit.TestKitBase.expectMsgClass$(TestKit.scala:569)
	at org.apache.pekko.testkit.TestKit.expectMsgClass(TestKit.scala:984)
	at org.apache.pekko.testkit.javadsl.TestKit.expectMsgClass(TestKit.scala:538)
	at org.eclipse.ditto.connectivity.service.messaging.amqp.AmqpClientActorTest$14.<init>(AmqpClientActorTest.java:644)
	at org.eclipse.ditto.connectivity.service.messaging.amqp.AmqpClientActorTest.testConsumeMessageAndExpectForwardToProxyActor(AmqpClientActorTest.java:628)
	at org.eclipse.ditto.connectivity.service.messaging.amqp.AmqpClientActorTest.testConsumeMessageAndExpectForwardToProxyActor(AmqpClientActorTest.java:620)
	at org.eclipse.ditto.connectivity.service.messaging.amqp.AmqpClientActorTest.testConsumeMessageForSourcesWithSameAddress(AmqpClientActorTest.java:591)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.mockito.internal.runners.DefaultInternalRunner$1$1.evaluate(DefaultInternalRunner.java:55)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
	at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:54)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
	at org.mockito.internal.runners.DefaultInternalRunner$1.run(DefaultInternalRunner.java:100)
	at org.mockito.internal.runners.DefaultInternalRunner.run(DefaultInternalRunner.java:107)
	at org.mockito.junit.MockitoJUnitRunner.run(MockitoJUnitRunner.java:163)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)

Standard Output

08:57:53.733 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-6] o.e.d.c.s.m.a.AmqpClientActor - ServiceUnbind State=<CONNECTED> unsubscribing from pubsub and stopping consumers
08:57:53.776 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-12] o.e.d.c.s.m.a.AmqpClientActor - SERVICE_REQUESTS_DONE: ackregatorCount=0
08:57:53.793 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-12] o.e.d.i.u.p.a.AckUpdater - Scheduling cluster state sync at <PT6M53.999S> interval (min=<PT5M>)
08:57:53.793 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-6] o.e.d.i.u.p.a.AckUpdater - Got <CurrentClusterState(TreeSet(), Set(), Set(), None, Map())>
08:57:53.794 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.i.u.p.a.SubUpdater - Scheduling cluster state sync at <PT6M4.269S> interval (min=<PT5M>)
08:57:53.795 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-13] o.e.d.i.u.p.a.SubUpdater - Scheduling cluster state sync at <PT8M3.126S> interval (min=<PT5M>)
08:57:53.797 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.i.u.p.a.SubUpdater - Scheduling cluster state sync at <PT7M10.22S> interval (min=<PT5M>)
08:57:53.848 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-12] o.e.d.c.s.m.a.AmqpClientActor - Using default client ID <connection-aefa388a-4131-4ff9-b760-183dbd26c95a>
08:57:53.850 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.c.s.m.m.l.ConnectionLoggerRegistry - Invalidating loggers for connection <connection-aefa388a-4131-4ff9-b760-183dbd26c95a>.
08:57:53.850 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.c.s.m.m.l.ConnectionLoggerRegistry - Initializing loggers for connection <connection-aefa388a-4131-4ff9-b760-183dbd26c95a>.
08:57:53.858 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.i.u.p.a.PubUpdater - Got <CurrentClusterState(TreeSet(), Set(), Set(), None, Map())>
08:57:53.859 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.i.u.p.a.SubUpdater - Scheduling cluster state sync at <PT9M56.408S> interval (min=<PT5M>)
08:57:53.860 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpClientActor - Failed to apply configuration <DefaultMessageMapperConfiguration [id=MockMapper, properties=MergedJsonObjectMap[jsonObject={},fallbackObject={}], incomingConditions={}, outgoingConditions={}]> to mapper instance <WrappingMessageMapper [delegate=org.eclipse.ditto.connectivity.service.mapping.test.MockMapper@7dd6bac0]>: The message mapper was not configured correctly as property 'Mock' was missing from the mappers configuration.
08:57:53.861 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpClientActor - Configured for processing messages with the following MessageMapperRegistry: <DefaultMessageMapperRegistry [defaultMapper=WrappingMessageMapper [delegate=DittoMessageMapper [id=default, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json]]], customMappers={}, fallbackMappers={UpdateTwinWithLiveResponse=WrappingMessageMapper [delegate=UpdateTwinWithLiveResponseMessageMapper [id=UpdateTwinWithLiveResponse, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json], dittoHeadersForMerge=ImmutableDittoHeaders [{response-required=false, if-match=*}]]], Duplicating=WrappingMessageMapper [delegate=id=Duplicating, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]], Normalized=WrappingMessageMapper [delegate=NormalizedMessageMapper [id=Normalized, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[], jsonFieldSelector=null]], Ditto=WrappingMessageMapper [delegate=DittoMessageMapper [id=Ditto, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json]]], Faulty=WrappingMessageMapper [delegate=id=Faulty, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]], header=WrappingMessageMapper [delegate=id=header, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]], RawMessage=WrappingMessageMapper [delegate=RawMessageMapper [id=RawMessage, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json], dittoMessageMapper=DittoMessageMapper [id=null, incomingConditions=null, outgoingConditions=null, contentTypeBlocklist=null], fallbackOutgoingContentType=ContentType [value=text/plain; charset=utf-8, parsingStrategy=TEXT], incomingMessageHeaders={ditto-message-direction={{header:ditto-message-direction|fn:default('TO')}}, ditto-message-subject={{header:ditto-message-subject}}, ditto-message-feature-id={{header:ditto-message-feature-id}}, content-type={{header:content-type|fn:default('application/octet-stream')}}, ditto-message-thing-id={{header:ditto-message-thing-id}}, status={{header:status}}}]], Dropping=WrappingMessageMapper [delegate=id=Dropping, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]]}]>
08:57:53.863 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpClientActor - Failed to apply configuration <DefaultMessageMapperConfiguration [id=MockMapper, properties=MergedJsonObjectMap[jsonObject={},fallbackObject={}], incomingConditions={}, outgoingConditions={}]> to mapper instance <WrappingMessageMapper [delegate=org.eclipse.ditto.connectivity.service.mapping.test.MockMapper@7dd6bac0]>: The message mapper was not configured correctly as property 'Mock' was missing from the mappers configuration.
08:57:53.863 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpClientActor - Configured for processing messages with the following MessageMapperRegistry: <DefaultMessageMapperRegistry [defaultMapper=WrappingMessageMapper [delegate=DittoMessageMapper [id=default, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json]]], customMappers={}, fallbackMappers={UpdateTwinWithLiveResponse=WrappingMessageMapper [delegate=UpdateTwinWithLiveResponseMessageMapper [id=UpdateTwinWithLiveResponse, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json], dittoHeadersForMerge=ImmutableDittoHeaders [{response-required=false, if-match=*}]]], Duplicating=WrappingMessageMapper [delegate=id=Duplicating, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]], Normalized=WrappingMessageMapper [delegate=NormalizedMessageMapper [id=Normalized, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[], jsonFieldSelector=null]], Ditto=WrappingMessageMapper [delegate=DittoMessageMapper [id=Ditto, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json]]], Faulty=WrappingMessageMapper [delegate=id=Faulty, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]], header=WrappingMessageMapper [delegate=id=header, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]], RawMessage=WrappingMessageMapper [delegate=RawMessageMapper [id=RawMessage, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[application/vnd.eclipse-hono-empty-notification, application/vnd.eclipse-hono-device-provisioning-notification, application/vnd.eclipse-hono-dc-notification+json, application/vnd.eclipse-hono-delivery-failure-notification+json], dittoMessageMapper=DittoMessageMapper [id=null, incomingConditions=null, outgoingConditions=null, contentTypeBlocklist=null], fallbackOutgoingContentType=ContentType [value=text/plain; charset=utf-8, parsingStrategy=TEXT], incomingMessageHeaders={ditto-message-direction={{header:ditto-message-direction|fn:default('TO')}}, ditto-message-subject={{header:ditto-message-subject}}, ditto-message-feature-id={{header:ditto-message-feature-id}}, content-type={{header:content-type|fn:default('application/octet-stream')}}, ditto-message-thing-id={{header:ditto-message-thing-id}}, status={{header:status}}}]], Dropping=WrappingMessageMapper [delegate=id=Dropping, incomingConditions={}, outgoingConditions={}, contentTypeBlocklist=[]]}]>
08:57:53.868 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.c.s.m.a.AmqpClientActor - Received JmsConnected
08:57:53.868 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.c.s.m.a.AmqpClientActor - Starting publisher and consumers.
08:57:53.869 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpClientActor - Subscribed Connection <connection-aefa388a-4131-4ff9-b760-183dbd26c95a> to sources: [ConsumerData [address=source1, addressWithIndex=source1-0], ConsumerData [address=source1, addressWithIndex=source1-0]]
08:57:53.871 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-11] o.e.d.c.s.m.a.AmqpPublisherActor - Target producer <twinEventExchange/twinEventRoutingKey> (JmsQueue) created
08:57:53.871 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpPublisherActor - Target producer <twin/key> (JmsQueue) created
08:57:53.871 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-6] o.e.d.c.s.m.a.AmqpPublisherActor - Target producer <live/key> (JmsQueue) created
08:57:53.971 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.a.AmqpClientActor - Client actor registered: <connection-aefa388a-4131-4ff9-b760-183dbd26c95a>
08:57:54.012 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-5] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:54.015 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-11] o.e.d.i.u.p.a.Subscriber - This cluster instance was terminated - no action required ..
08:57:54.211 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.c.s.m.a.AmqpClientActor - Initialization of consumers, publisher and subscriptions successful, going to CONNECTED.
08:57:54.215 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.e.d.c.s.m.a.AmqpConsumerActor - Received message from AMQP 1.0 with externalMessageHeaders: {content-type=application/vnd.eclipse.ditto+json, reply-to=reply, correlation-id=cid}
08:57:54.217 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-13] o.e.d.c.s.m.a.AmqpConsumerActor - Received message from AMQP 1.0 with externalMessageHeaders: {content-type=application/vnd.eclipse.ditto+json, reply-to=reply, correlation-id=cid}
08:57:54.221 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-13] o.e.d.c.s.m.InboundDispatchingSink - onMapped mappedHeaders ImmutableDittoHeaders [{ditto-reply-target=1, ditto-expected-response-types=["response","error"], ditto-origin=connection-aefa388a-4131-4ff9-b760-183dbd26c95a, ditto-auth-context={"type":"pre-authenticated-connection","subjects":["source:subject"]}, correlation-id=cid, reply-to=replies, content-type=application/json, ditto-entity-id=thing:ditto:thing, ditto-inbound-payload-mapper=default}]
08:57:54.221 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.c.s.m.InboundDispatchingSink - onMapped mappedHeaders ImmutableDittoHeaders [{ditto-reply-target=0, ditto-expected-response-types=["response","error"], ditto-origin=connection-aefa388a-4131-4ff9-b760-183dbd26c95a, ditto-auth-context={"type":"pre-authenticated-connection","subjects":["source:subject"]}, correlation-id=cid, reply-to=replies, content-type=application/json, ditto-entity-id=thing:ditto:thing, ditto-inbound-payload-mapper=default}]
08:57:54.223 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.e.s.a.AcknowledgementAggregatorActor - Starting to wait for all requested acknowledgements <[twin-persisted]> for a maximum duration of <PT1M5S>.
08:57:54.414 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-8] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:54.417 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-14] o.e.d.i.u.p.a.Subscriber - This cluster instance was terminated - no action required ..
08:57:55.776 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-6] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:55.935 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-11] o.e.d.c.s.m.a.AmqpClientActor - Shutdown timeout <PT3S> reached; aborting <2> ackregators
08:57:56.110 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-6] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:56.269 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-13] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:56.413 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-5] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:56.416 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-6] o.e.d.i.u.p.a.Subscriber - This cluster instance was terminated - no action required ..
08:57:56.661 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-13] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:57.057 [WARN ] [PekkoTestSystem-pekko.actor.default-dispatcher-7] o.a.p.a.CoordinatedShutdown - Coordinated shutdown phase [service-unbind] timed out after 5000 milliseconds
08:57:57.060 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-13] o.e.d.i.u.p.a.Subscriber - This cluster instance was terminated - no action required ..
08:57:57.224 [INFO ] [PekkoTestSystem-pekko.actor.default-dispatcher-11] o.e.d.c.s.m.a.AmqpClientActor - ServiceUnbind State=<CONNECTED> unsubscribing from pubsub and stopping consumers