Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(engine): prevent StackOverFlowError from breaking partition
When terminating a child instance we bubble up to the flowscope to let it know the child has been terminated. This flow scope can then check if it can also terminate itself. If there is a lot of nested children (usually due to a modelling error) this bubbling up could cause a StackOverFlowError. Currently this would break a partition and put the cluster in an unrecoverable state. This commit catches the SO and turns it into a RuntimeException. The Engine can handle this and will consider this to be an UNEXPECTED_ERROR. As a result the instance gets banned. (cherry picked from commit 357b98d)
- Loading branch information