You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by GitBox <gi...@apache.org> on 2025/07/11 16:06:16 UTC

[GH] (pekko/main): Workflow run "Update Dependency Graph" is working again!

The GitHub Actions job "Update Dependency Graph" on pekko.git/main has succeeded.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
d89f2eec8b1cf778869a0e19bf7c77a8e0720565 / Tomassino-ibm <to...@ibm.com>
Fix typed persistence stack overflow with many read only commands (#1919)

* Update unstash stack overflow test to have it actually fail

Taken changes from https://github.com/apache/pekko/pull/1336 to have a test that fails

* Fix possible stack overflow in persistence-typed

This commit adds code to break recurrent calls in persistence-typed while unstashing read-only commands that could lead to a stack overflow, fixing issue #1327 (limited to EventSourcedBehavior)

The fix can be enabled using a feature flag, by default it is disabled

* bin compat exclude and scalafmt

* Also fix the same stack overflow issue in DurableStateBehavior

The fix is enabled by the same feature flag used by the fix of EventSourcedBehavior

* Enable by default the fix for the stack overflow

Also rename parameter

* Refactor code to make it more explicit that the old code path is unchanged

This commit changes how `onMessage` and `onCommand` are implemented to make it clearer that, when the `recurse-when-unstashing-read-only-commands` flag is set to true, the old code path is used.

Moreover, the while loop in onCommand has been changed into a tail recursive function

These changes have been applied to both EventSourcedBehavior and DurableStateBehavior

---------

Co-authored-by: PJ Fanning <pj...@users.noreply.github.com>

Report URL: https://github.com/apache/pekko/actions/runs/16216767071

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org