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

Update Camunda to v7.20.0 #190

Merged
merged 31 commits into from
Dec 6, 2023
Merged

Update Camunda to v7.20.0 #190

merged 31 commits into from
Dec 6, 2023

Conversation

wcgunter
Copy link
Collaborator

@wcgunter wcgunter commented Nov 6, 2023

  • Updates Camunda to v7.20.0
  • Updates Tomcat to 9.0.75
  • Removed manual process log cleanup to allow Camunda to efficiently decide when to remove old information. (HistoryCleanupDaemon has been renamed and now only cleans up ElasticSearch and worker logs every 8 hours

@@ -5,6 +5,7 @@
<bean id="processEngineConfiguration" class="org.camunda.bpm.engine.impl.cfg.StandaloneInMemProcessEngineConfiguration">

<property name="history" value="activity" />
<property name="enforceHistoryTimeToLive" value="false" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is only temporary right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yep! This allows the existing bpmn files to appear / be used / run. We just need to decide whether to enforce the "enforceHistoryTimeToLive" value in the bpmn files to not be null or to continue letting them be null (which might cause issues with clearing out historical data)

Copy link
Contributor

@galenatjpl galenatjpl Nov 14, 2023

Choose a reason for hiding this comment

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

I'm not really in the loop here, but from the perspective of other projects, history cleanup needs to work, and they will adopt the latest CWS at some point (hopefully). Is this value needed due to the upgrade to Camunda 7.20.0? And what's the plan to roll it back at some point? Thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, this value is required now in Camunda 7.20 (see reasoning here: https://docs.camunda.org/manual/7.20/update/minor/719-to-720/#enforce-history-time-to-live). I think we are still deciding on what we want to do here because if we keep this flag as false here, it will keep the current behavior as is.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks. Why not just set enforceHistoryTimeToLive to "true" though? Per the Camunda article you linked above, projects will run into trouble if they don't start cleaning up history on day one. Since the other CWS settings don't have the history level turned completely off, this means that the default CWS will indeed run into trouble. For those reasons, I would think this should be "true". Does that make sense?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We're probably going to end up reverting this change before we merge this in. The only reason it is set to false currently in the PR is because all of the testing & example models currently have "historyTimeToLive" set to null which prevents the models from being loaded by the engine at all.

I definitely agree that when we merge the PR in (at a point in the future when I've been able to iron out the issues with the automated testing) that this flag should be set to true - we'll just have to decide how to mitigate any issues with projects that have models that have a null value for their timetolive (whether thats just adding a step in our migration guide to have everyone update any out-of-compliance models or create a script that can do that for them).

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the explanation, and that approach sounds good to me!

Copy link
Collaborator

Choose a reason for hiding this comment

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

@galenatjpl We are going to enforce that all models define the historyTimeToLive for CWS 2.6+.

Like this:
<bpmn:process id="external_pwd" name="external_pwd" isExecutable="true" camunda:historyTimeToLive="30">

In number of days.

@wcgunter wcgunter marked this pull request as ready for review November 27, 2023 03:28
Copy link
Collaborator

@brentjk brentjk left a comment

Choose a reason for hiding this comment

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

Very Impressive. Looks great I see no issues.

@jamesfwood
Copy link
Collaborator

Hi @RonnyFrayRegato !
If you have some time, could you review this PR? You know a lot about upgrading Camunda! 😄
Thanks!

utils.sh Outdated Show resolved Hide resolved
@wcgunter wcgunter requested a review from jamesfwood December 6, 2023 00:03
@wcgunter wcgunter self-assigned this Dec 6, 2023
Copy link
Collaborator

@jamesfwood jamesfwood left a comment

Choose a reason for hiding this comment

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

Looks great!

@jamesfwood jamesfwood merged commit 70721dc into develop Dec 6, 2023
4 checks passed
@jamesfwood jamesfwood deleted the camunda-7.20.0 branch December 19, 2023 23:18
@jamesfwood jamesfwood restored the camunda-7.20.0 branch December 19, 2023 23:18
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.

4 participants