Open cer opened 2 years ago
The test creates customers:
CustomerID=10
CustomerID=8
but the failing command handler:
Customer not found: 1665003257045
This looks like currentTimeMillis():
new java.util.Date(1665003257045L)
$1 ==> Wed Oct 05 13:54:17 PDT 2022
TODO - investigate failing builds with additional logging: https://app.circleci.com/pipelines/github/eventuate-tram/eventuate-tram-sagas/120/workflows/ed95176f-143f-4619-99f9-40cc584ab305/jobs/619
Here is a test run:
19:50:24.941
- order created 19:51:01.604
- command handler invokedI think it took a long time for Kafka consumer to initialize - waiting to be assigned partition?
2022-10-08 19:50:23.603 INFO 9340 --- [ Test worker] .s.r.i.CustomersAndOrdersIntegrationTest : Started CustomersAndOrdersIntegrationTest in 3.184 seconds (JVM running for 4.169)
2022-10-08 19:50:24.670 INFO 9340 --- [ Test worker] .s.r.i.CustomersAndOrdersIntegrationTest : shouldReject CustomerID=8
...
2022-10-08 19:50:24.941 INFO 9340 --- [tor-tcp-epoll-3] i.e.e.t.s.o.s.r.o.s.CreateOrderSaga : saga createOrder() with ID=9
....
2022-10-08 19:51:01.604 INFO 9340 --- [tor-tcp-epoll-3] e.e.t.s.o.s.r.c.s.CustomerCommandHandler : reserveCredit OrderId=9, CustomerID=8
2022-10-08 19:51:01.696 INFO 9340 --- [tor-tcp-epoll-3] e.e.t.s.o.s.r.c.s.CustomerCommandHandler : reservedCredit CustomerCreditLimitExceededException OrderId=9, CustomerID=8
2022-10-08 19:51:01.880 INFO 9340 --- [ Test worker] s.r.o.ReactiveSagaInstanceRepositoryJdbc : Saving io.eventuate.examples.tram.sagas.ordersandcustomers.spring.reactive.orders.service.CreateOrderSaga 00000183b926a7f8-0665749bf0590000
repeated failures:
https://app.circleci.com/pipelines/github/eventuate-tram/eventuate-tram-sagas/116/workflows/cde3d011-1e42-4b78-867d-407f2ed8a57e/jobs/582
io.eventuate.examples.tram.sagas.ordersandcustomers.spring.reactive.integrationtests.CustomersAndOrdersIntegrationTest