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

Add option to automatically save the broker state on failure #254

Open
npepinpe opened this issue Jan 23, 2022 · 0 comments
Open

Add option to automatically save the broker state on failure #254

npepinpe opened this issue Jan 23, 2022 · 0 comments
Labels
hacktoberfest type/feature New user facing features

Comments

@npepinpe
Copy link
Collaborator

npepinpe commented Jan 23, 2022

Is your feature request related to a problem? Please describe.

When testing Zeebe itself with this library, sometimes a bug will occur in one of the containers, and it's hard to reproduce locally. Having the state would allow one to restart with the same log/state and more easily reproduce certain class of bugs in a local JVM.

This is already possible, but requires some wiring together of the various components and reacting on test failure.

Describe the solution you'd like

Add a flag to the broker nodes, which accepts a local path where the state should be saved on failure. Implement TestLifecycleAware on the broker nodes, and save the state on failure when applicable.

Describe alternatives you've considered

Let users manually come up with it; possibly add documentation and an example test to showcase this.

@npepinpe npepinpe added the type/feature New user facing features label Jan 23, 2022
@npepinpe npepinpe changed the title Add a Junit 5 extension to automatically save the broker state Add option to automatically save the broker state on failure Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest type/feature New user facing features
Projects
None yet
Development

No branches or pull requests

1 participant