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: only create one CREATED event per form on distribution #25728

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

tmetzke
Copy link
Member

@tmetzke tmetzke commented Dec 6, 2024

Description

Upon deployment CREATE distribution, we only create one CREATED event per form with the defined
resource content per partition. We use the checksum to identify the unqiue form resources instead
of relying on resource names as those can occur multiple times per deployment.

Otherwise, we are creating too many CREATED events for each form resource, one for each other form
with the same name and the content of that other form. This can lead to forms having the wrong
content in the end, depending on which event was processed last for a form.

Checklist

Related issues

closes #25727

Upon deployment CREATE distribution, we only create one CREATED event per form with the defined
resource content per partition. We use the checksum to identify the unqiue form resources instead
of relying on resource names as those can occur multiple times per deployment.

Otherwise, we are creating too many CREATED events for each form resource, one for each other form
with the same name and the content of that other form. This can lead to forms having the wrong
content in the end, depending on which event was processed last for a form.
Ensures forms are only deployed once per partition with their defined content on deployment
distribution, even when there are multiple forms with the same name in one deployment.
@tmetzke tmetzke self-assigned this Dec 6, 2024
@github-actions github-actions bot added the component/zeebe Related to the Zeebe component/team label Dec 6, 2024
@tmetzke tmetzke added backport stable/8.3 Backport a pull request to 8.3.x backport stable/8.4 Backport a pull request to 8.4.x backport stable/8.5 Backport a pull request to stable/8.5 backport stable/8.6 Backport a pull request to stable/8.6 labels Dec 6, 2024
Copy link
Contributor

@remcowesterhoud remcowesterhoud left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @tmetzke 👍

@tmetzke tmetzke added this pull request to the merge queue Dec 9, 2024
Merged via the queue into main with commit 84eb872 Dec 9, 2024
72 checks passed
@tmetzke tmetzke deleted the 25727-form-deployment-distribution branch December 9, 2024 08:32
@backport-action
Copy link
Collaborator

Successfully created backport PR for stable/8.3:

@backport-action
Copy link
Collaborator

backport-action commented Dec 9, 2024

Successfully created backport PR for stable/8.4:

Had issues fulfilling your command, check the logs

@backport-action
Copy link
Collaborator

Successfully created backport PR for stable/8.5:

@backport-action
Copy link
Collaborator

Successfully created backport PR for stable/8.6:

github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
…distribution (#25744)

# Description
Backport of #25728 to `stable/8.3`.

relates to #25727
original author: @tmetzke
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
…distribution (#25747)

# Description
Backport of #25728 to `stable/8.6`.

relates to #25727
original author: @tmetzke
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
…distribution (#25746)

# Description
Backport of #25728 to `stable/8.5`.

relates to #25727
original author: @tmetzke
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
…distribution (#25745)

# Description
Backport of #25728 to `stable/8.4`.

relates to #25727
original author: @tmetzke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport stable/8.3 Backport a pull request to 8.3.x backport stable/8.4 Backport a pull request to 8.4.x backport stable/8.5 Backport a pull request to stable/8.5 backport stable/8.6 Backport a pull request to stable/8.6 component/zeebe Related to the Zeebe component/team version:8.3.19 version:8.4.15 version:8.5.11 version:8.6.7
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Same-name form resources inside deployments overridden with unexpected content on deployment distribution
3 participants