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

fix: implement InMemoryLogStorage.append #614

Merged
1 commit merged into from
Dec 19, 2022
Merged

Conversation

korthout
Copy link
Member

@korthout korthout commented Dec 16, 2022

Description

This method was newly added to LogStorage to support appends of unserialized application data. But now this lead to a compilation error in ZPT because it contains a class InMemoryLogStorage that implements LogStorage.

The implementation of the test class ListLogStorage seemed like a reasonable solution for zeebe-process-test. It simply writes the contents of the writer into a buffer and appends it as usual.

Related issues

closes #613

Definition of Done

Not all items need to be done depending on the issue and the pull request.

Code changes:

  • The changes are backwards compatibility with previous versions
  • If it fixes a bug then PRs are created to backport the fix

Testing:

  • There are unit/integration tests that verify all acceptance criterias of the issue
  • New tests are written to ensure backwards compatibility with further versions
  • The behavior is tested manually

Documentation:

  • Javadoc has been written
  • The documentation is updated

This method was newly added to LogStorage to support appends of
unserialized application data.

The implementation of the test class ListLogStorage seemed like a
reasonable solution for zeebe-process-test. It simply writes the
contents of the writer into a buffer and appends it as usual.

See:
https://github.com/camunda/zeebe/blob/4dd1025f3f3ba86b5aec10d380b9db8550ed0967/logstreams/src/test/java/io/camunda/zeebe/logstreams/util/ListLogStorage.java#L77-L79
@github-actions
Copy link

Test Results

  47 files  ±0    47 suites  ±0   1m 55s ⏱️ -12s
113 tests ±0  113 ✔️ ±0  0 💤 ±0  0 ±0 
362 runs  ±0  362 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 1368ba5. ± Comparison against base commit f6d6bc3.

@korthout korthout requested review from lenaschoenburg and removed request for remcowesterhoud December 16, 2022 09:46
@korthout
Copy link
Member Author

@oleschoenburg It might be better if you could review this one since you've also introduced the new API.

Copy link
Member

@lenaschoenburg lenaschoenburg left a comment

Choose a reason for hiding this comment

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

Perfect, thanks @korthout! I keep forgetting that I have to update here when I make changes to the logstream.

@korthout
Copy link
Member Author

@oleschoenburg No worries, that's what we have tests for.

bors merge

@ghost
Copy link

ghost commented Dec 19, 2022

Build succeeded:

@ghost ghost merged commit aa357d6 into main Dec 19, 2022
@ghost ghost deleted the korthout-613-compilation-failure branch December 19, 2022 09:53
This pull request was closed.
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.

Compilation error against Zeebe SNAPSHOT
2 participants