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

Split deployment distribution behavior #9872

Closed
wants to merge 1 commit into from

Conversation

pihme
Copy link
Contributor

@pihme pihme commented Jul 22, 2022

Description

Splits the DeploymentDistributionBehavior into two classes. Splitting it reduces dependencies for one sub-class. This allows to remove dependency to Writers in ReadOnlyStreamProcesorContext

Related issues

relates to #9725

Review hints

  • Nothing special about this class, other than it is a pet peeve of mine. I tried so often to refactor this class, but always had to wait for another PR or do some other refactoring first.
  • If you like the names, feel free to review and merge it. If you don't like the names, please take over the PR

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 to the last two minor versions. You can trigger a backport by assigning labels (e.g. backport stable/1.3) to the PR, in case that fails you need to create backports manually.

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
  • The change has been verified by a QA run
  • The impact of the changes is verified by a benchmark

Documentation:

  • The documentation is updated (e.g. BPMN reference, configuration, examples, get-started guides, etc.)
  • New content is added to the release announcement
  • If the PR changes how BPMN processes are validated (e.g. support new BPMN element) then the Camunda modeling team should be informed to adjust the BPMN linting.

Please refer to our review guidelines.

@pihme pihme requested a review from korthout July 22, 2022 14:27
@pihme pihme changed the title Split deployment distribution processor Split deployment distribution behavior Jul 22, 2022
Copy link
Member

@korthout korthout left a comment

Choose a reason for hiding this comment

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

After reviewing the changes in this PR I wanted to accept it, but I did expect some conflicts with #9858. Now that #9858 is merged, it's clear that it doesn't just conflict but completely replaces the code that was extracted here. I think there's no need for this PR anymore, as the new implementation doesn't have the problem that this PR tried to fix.

@pihme I guess this review came just too late, sorry about that 🙇

@pihme
Copy link
Contributor Author

pihme commented Jul 28, 2022

@korthout This PR still has one purpose: to remove getWriters(...) from ReadOnlyStreamProcessorContext and all the code that puts them there.

@pihme pihme force-pushed the pihme-split-deployment-distribution-processor branch from e2bc6bd to d2709ca Compare August 3, 2022 12:18
@github-actions
Copy link
Contributor

github-actions bot commented Aug 3, 2022

Test Results

   805 files  +1         1 errors  804 suites  +1   1h 35m 41s ⏱️ + 3m 22s
5 962 tests ±0  5 951 ✔️  - 2  9 💤 ±0  2 +2 
6 148 runs  ±0  6 137 ✔️  - 2  9 💤 ±0  2 +2 

For more details on these parsing errors and failures, see this check.

Results for commit d2709ca. ± Comparison against base commit 77114d6.

@pihme
Copy link
Contributor Author

pihme commented Aug 3, 2022

Closing this PR as its description is obsolete. PR will be recreated with updated description

@pihme pihme closed this Aug 3, 2022
@pihme pihme mentioned this pull request Aug 3, 2022
10 tasks
zeebe-bors-camunda bot added a commit that referenced this pull request Aug 3, 2022
9967: Remove writers from interface r=pihme a=pihme

## Description

This PR removes the writers fronm `ReadOnlyStreamProcessorContext`. This is important, because the writers are an engine-internal construct, only valid during calls to `process(...)` or `onError(...)` and must not be handed out to other classes.

## Related issues

relates to #9725
replaces #9872 



Co-authored-by: pihme <pihme@users.noreply.github.com>
zeebe-bors-camunda bot added a commit that referenced this pull request Aug 4, 2022
9967: Remove writers from interface r=pihme a=pihme

## Description

This PR removes the writers fronm `ReadOnlyStreamProcessorContext`. This is important, because the writers are an engine-internal construct, only valid during calls to `process(...)` or `onError(...)` and must not be handed out to other classes.

## Related issues

relates to #9725
replaces #9872 



Co-authored-by: pihme <pihme@users.noreply.github.com>
@zeebe-bors-camunda zeebe-bors-camunda bot deleted the pihme-split-deployment-distribution-processor branch August 4, 2022 06:23
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.

None yet

2 participants