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

Stream records from the agent to the testcontainer extension #330

Open
Tracked by #189
remcowesterhoud opened this issue Apr 20, 2022 · 1 comment
Open
Tracked by #189

Comments

@remcowesterhoud
Copy link
Contributor

remcowesterhoud commented Apr 20, 2022

We keep an array of mapped records in the engine agent, mostly because we reuse the RecordStreamSource. Instead the extension could open a long living stream to the engine, and push records out as they come in. We can register commit listeners to be notified of new records as they are appended. This would get rid of the more complicated way of reading records on demand, and no serialization needs to take place during assertion

@remcowesterhoud remcowesterhoud changed the title We keep a records array in the containerized engine, mostly because we reuse the RecordStreamSourceImpl. What if instead the extension just opened a long living stream to the engine, and it just pushed records out as they come in? You can register commit listeners to be notified of new records as they are appended, so you could just do that instead of having a more complicated way of reading records on demand. Happy to expand if that's not clear. The RecordStreamSourceImpl could then just be in the extension and wrap a plain list or the likes, and no serialization needs to take place during assertion Stream records from the agent to the testcontainer extension Apr 20, 2022
@saig0
Copy link
Member

saig0 commented May 31, 2024

Note

Heads up! We are building a new Java testing library for Camunda 8.6. The new library will replace Zeebe Process Test.
Read more about upcoming changes here and stay tuned for updates. 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants