Skip to content
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

Open
dartartem opened this issue Mar 26, 2021 · 0 comments
Open

Build 627 failed. Order state is pending instead of rejected #84

dartartem opened this issue Mar 26, 2021 · 0 comments

Comments

@dartartem
Copy link
Collaborator

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.

@dartartem dartartem changed the title build failed build 627 failed order state is pending instead of rejected Mar 26, 2021
@dartartem 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 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant