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

Apply event-sourcing to the message start event subscription processors #6510

Merged
1 commit merged into from
Mar 16, 2021

Conversation

saig0
Copy link
Member

@saig0 saig0 commented Mar 9, 2021

Description

  • align the message start event subscription intents OPENED and CLOSE and rename them to CREATED and DELETED
  • avoid writing and process CREATE and DELETE commands
    • instead, the deployment processor writes the events directly
    • replace the command processors by the event appliers

Related issues

closes #6183

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/0.25) 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

@saig0 saig0 force-pushed the 6183-message-start-event-subscription branch from 06ace74 to 7e2e96e Compare March 10, 2021 13:41
@saig0 saig0 requested a review from pihme March 11, 2021 04:37
@saig0 saig0 force-pushed the 6183-message-start-event-subscription branch from 7e2e96e to 2e23d82 Compare March 11, 2021 05:00
@saig0 saig0 marked this pull request as ready for review March 11, 2021 05:00
@saig0 saig0 force-pushed the 6183-message-start-event-subscription branch from 2e23d82 to 51d47ee Compare March 11, 2021 06:21
Copy link
Contributor

@pihme pihme left a comment

Choose a reason for hiding this comment

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

looks good to me 🎉

Please have a look at my two comments.


CLOSE((short) 2),
CLOSED((short) 3);
CREATED((short) 0),
Copy link
Contributor

Choose a reason for hiding this comment

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

One thing we might want to consider here is whether we want to reuse the old ordinals. E.g. if you set Correlated to 4 and deleted to 3, we could read more of the old records. Not sure there is a point though, as there are ordinals of the old records which we cannot read anymore anyway.

Another option is to keep all the old ordinals, reassign the reused ones, deprecate the ones we won't use anymore. Then we could write out exceptions when we encounter an unsupported ordinal.

Again, not sure it is worth it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Usually, I would agree. But since the version will not be compatible anyway, we don't need to care.

@saig0 saig0 force-pushed the 6183-message-start-event-subscription branch from 51d47ee to c7459a7 Compare March 11, 2021 08:44
@saig0
Copy link
Member Author

saig0 commented Mar 11, 2021

bors r+

ghost pushed a commit that referenced this pull request Mar 11, 2021
6510: Apply event-sourcing to the message start event subscription processors r=saig0 a=saig0

## Description

* align the message start event subscription intents `OPENED` and `CLOSE` and rename them to `CREATED` and `DELETED`
* avoid writing and process `CREATE` and `DELETE` commands
  * instead, the deployment processor writes the events directly
  * replace the command processors by the event appliers

## Related issues

closes #6183 

## 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](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually.

Testing:
* [x] 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](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape)


Co-authored-by: Philipp Ossler <philipp.ossler@gmail.com>
@ghost
Copy link

ghost commented Mar 11, 2021

Build failed:

@saig0
Copy link
Member Author

saig0 commented Mar 11, 2021

bors retry

ghost pushed a commit that referenced this pull request Mar 11, 2021
6510: Apply event-sourcing to the message start event subscription processors r=saig0 a=saig0

## Description

* align the message start event subscription intents `OPENED` and `CLOSE` and rename them to `CREATED` and `DELETED`
* avoid writing and process `CREATE` and `DELETE` commands
  * instead, the deployment processor writes the events directly
  * replace the command processors by the event appliers

## Related issues

closes #6183 

## 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](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually.

Testing:
* [x] 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](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape)


Co-authored-by: Philipp Ossler <philipp.ossler@gmail.com>
@ghost
Copy link

ghost commented Mar 11, 2021

Build failed:

* align the message start event subscription intents OPENED and CLOSED and rename them to CREATED and DELETED
* avoid writing CREATE and DELETE commands. instead, write the events directly when processing a new deployment.
@saig0 saig0 force-pushed the 6183-message-start-event-subscription branch from c7459a7 to 5d853e0 Compare March 15, 2021 07:24
@saig0
Copy link
Member Author

saig0 commented Mar 15, 2021

bors

@saig0
Copy link
Member Author

saig0 commented Mar 16, 2021

bors r+

ghost pushed a commit that referenced this pull request Mar 16, 2021
6510: Apply event-sourcing to the message start event subscription processors r=saig0 a=saig0

## Description

* align the message start event subscription intents `OPENED` and `CLOSE` and rename them to `CREATED` and `DELETED`
* avoid writing and process `CREATE` and `DELETE` commands
  * instead, the deployment processor writes the events directly
  * replace the command processors by the event appliers

## Related issues

closes #6183 

## 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](https://github.com/zeebe-io/zeebe/compare/stable/0.24...develop?expand=1&template=backport_template.md&title=[Backport%200.24]) the fix to the last two minor versions. You can trigger a backport by assigning labels (e.g. `backport stable/0.25`) to the PR, in case that fails you need to create backports manually.

Testing:
* [x] 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](https://drive.google.com/drive/u/0/folders/1DTIeswnEEq-NggJ25rm2BsDjcCQpDape)


Co-authored-by: Philipp Ossler <philipp.ossler@gmail.com>
@ghost
Copy link

ghost commented Mar 16, 2021

Build failed:

@saig0
Copy link
Member Author

saig0 commented Mar 16, 2021

bors r+

@ghost
Copy link

ghost commented Mar 16, 2021

Build succeeded:

@ghost ghost merged commit 438395e into develop Mar 16, 2021
@ghost ghost deleted the 6183-message-start-event-subscription branch March 16, 2021 06:46
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.

Apply event-sourcing to the message start event subscription processors
4 participants