forked from dapr/dapr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflows: Fix daprd memory leak (dapr#8047)
* Workflows: Fix daprd memory leak Fixes a memory leak in Workflows whereby the internal actor state held by daprd would never be released- meaning daprd would grow in memory indefinitely after each workflow execution. This memory leak occurs for both scheduler and non-scheduler reminders. Specifically, the actor table and internal actor workflow state maps where never deleted after workflow orchestration and activity completion. PR updates the workflow and activity actors to track whether it has been completed. This is signalled to the actor runtime after a workflow reminder execution, and the actor runtime will then delete the actor state. Adds integration tests to ensure daprd memory usage does not grow for both scheduler and non-scheduler workflows. Signed-off-by: joshvanl <[email protected]> * Skip workflow process on windows due to sqlite limitations Signed-off-by: joshvanl <[email protected]> * Increase scheduler int test start up wait time 5s -> 15s Signed-off-by: joshvanl <[email protected]> * Increase TCP port ready time for int test daprd Signed-off-by: joshvanl <[email protected]> * Wait for scheduler client before wait for ready Signed-off-by: joshvanl <[email protected]> * Revert Signed-off-by: joshvanl <[email protected]> * Increase Eventually on TCP port check Signed-off-by: joshvanl <[email protected]> * Increase memory difference for memory leak Signed-off-by: joshvanl <[email protected]> * Increase Eventually timeout for re-schedule Signed-off-by: joshvanl <[email protected]> --------- Signed-off-by: joshvanl <[email protected]> Co-authored-by: Yaron Schneider <[email protected]>
- Loading branch information
Showing
17 changed files
with
491 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.