-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build 627 failed. Order state is pending instead of rejected #84
Comments
dartartem
changed the title
build failed
build 627 failed order state is pending instead of rejected
Mar 26, 2021
dartartem
changed the title
build 627 failed order state is pending instead of rejected
build 627 failed. Order state is pending instead of rejected
Mar 26, 2021
dartartem
changed the title
build 627 failed. Order state is pending instead of rejected
Build 627 failed. Order state is pending instead of rejected
Mar 26, 2021
dartartem
added a commit
to dartartem/eventuate-tram-examples-customers-and-orders
that referenced
this issue
Mar 26, 2021
…f rejected. Added cdc restart after db id migration.
cer
added a commit
that referenced
this issue
Mar 26, 2021
#84: Build 627 failed. Order state is pending instead of rejected. Ad…
dartartem
added a commit
to dartartem/eventuate-examples-java-customers-and-orders
that referenced
this issue
Mar 26, 2021
dartartem
added a commit
to dartartem/eventuate-tram-sagas-examples-customers-and-orders
that referenced
this issue
Mar 26, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see: https://app.circleci.com/pipelines/github/eventuate-tram/eventuate-tram-examples-customers-and-orders/147/workflows/1cbcbce6-1360-4b23-8e08-f071ee5fccbf/jobs/627
Problem:
Eventuate cdc service caches primary keys:
https://github.com/eventuate-foundation/eventuate-cdc/blob/0ada218b4228f03bf9d967968dc178e16010cce6/eventuate-local-java-cdc-connector-polling/src/main/java/io/eventuate/local/polling/PollingDao.java#L34
https://github.com/eventuate-foundation/eventuate-cdc/blob/0ada218b4228f03bf9d967968dc178e16010cce6/eventuate-local-java-cdc-connector-polling/src/main/java/io/eventuate/local/polling/PollingDao.java#L203-L219
After db id migration primary key column is changed.
New message records after migration have empty old primary key.
When any new message processed, all new records marked as published,
because have empty old primary key (and cdc uses it when marks event published), so some messages were ignored by cdc.
Solution:
Restart cdc service after migration.
The text was updated successfully, but these errors were encountered: