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

[0.12.x] MPL-68: make run_schemas updates asynchronous #1593

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

johnaohara
Copy link
Member

Backport: #1581

Fixes Issue

Fixes #1579

Changes proposed

Changes:

  • create new channel named schema-sync-{in, out} and related event CreateOrUpdateEvent (TBH I think this could be simplified further as we just need the schemaId value, thus we can remove the event and keep an id only)
  • move newOrUpdatedSchema from ServiceMediator to SchemaServiceImpl for coherence (especially as we need the TxManager)
  • make runService.onNewOrUpdatedSchema(event.id); asynchronous

Check List (Check all the applicable boxes)

  • My code follows the code style of this project.
  • My change requires changes to the documentation.
  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@johnaohara
Copy link
Member Author

@lampajr please could you take a look at the test failures for this backport?

Copy link
Member

@lampajr lampajr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the backport looks good, but it seems it brought some other un-wanted changes

@lampajr lampajr force-pushed the bp-0.12.x-e30e650 branch from e9266b9 to 5f0a4d8 Compare April 15, 2024 11:49
Copy link
Member

@lampajr lampajr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@johnaohara looks good now

@johnaohara
Copy link
Member Author

@lampajr thanks

@johnaohara johnaohara merged commit c17c389 into 0.12.x Apr 15, 2024
2 checks passed
@johnaohara johnaohara deleted the bp-0.12.x-e30e650 branch April 15, 2024 12:29
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

Successfully merging this pull request may close these issues.

2 participants