This repository was archived by the owner on Jun 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
This repository was archived by the owner on Jun 2, 2025. It is now read-only.
TestEventStore Saga names not resolved during test phase #55
Copy link
Copy link
Open
Labels
Milestone
Description
During tests using TestEventStore, an exception is raised complaining about Saga names that are derived from spring property: ${spring.application.name}
.storageserver.StorageServerTeamAssignmentSaga on class mu.cibecs.core.team.events.TeamAssignedToStorageServerEvent
2017-07-12 09:14:04.284 INFO 45920 --- [pool-9-thread-1] nClusterAwareTrackingSubscriptionManager : Subscribing from index 1 to event stream saga-manager-${spring.application.name}/StorageServer '${spring.application.name}/StorageServer'
Exception in thread "pool-9-thread-1" io.muoncore.exception.MuonException: The name provided [photon-mini] is invalid
at io.muoncore.protocol.event.client.DefaultEventClient.replay(DefaultEventClient.java:158)
at io.muoncore.newton.cluster.MuonClusterAwareTrackingSubscriptionManager.localTrackingSubscription(MuonClusterAwareTrackingSubscriptionManager.java:97)
at io.muoncore.newton.cluster.MuonClusterAwareTrackingSubscriptionManager.lambda$globallyUniqueSubscription$4(MuonClusterAwareTrackingSubscriptionManager.java:67)
at mu.cibecs.NewtonTestConfiguration.lambda$lockService$1(NewtonTestConfiguration.java:88)
at io.muoncore.newton.cluster.MuonClusterAwareTrackingSubscriptionManager.globallyUniqueSubscription(MuonClusterAwareTrackingSubscriptionManager.java:66)
at io.muoncore.newton.saga.SagaStreamManager.processSaga(SagaStreamManager.java:91)
at io.muoncore.newton.saga.SagaStreamManager.lambda$null$0(SagaStreamManager.java:58)
at java.util.HashMap$Values.forEach(HashMap.java:980)
at io.muoncore.newton.saga.SagaStreamManager.lambda$onApplicationEvent$1(SagaStreamManager.java:54)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.URISyntaxException: Illegal character in query at index 51: stream://photon-mini/stream?sub-name=saga-manager-${spring.application.name}/StorageServer&stream-name=${spring.application.name}/StorageServer&stream-type=hot-cold&from=1
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3111)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.<init>(URI.java:588)
at io.muoncore.protocol.event.client.DefaultEventClient.replay(DefaultEventClient.java:134)
... 11 more
Reactions are currently unavailable