From e1fa88fbf8cf06f8f5e20f314550fd5d9e795895 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 21 May 2024 17:04:50 +0100 Subject: [PATCH 1/2] reproduce issue where stackoverflow happens in unstash --- .../typed/scaladsl/EventSourcedStashOverflowSpec.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala b/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala index 316015ca75f..bb3a0f34788 100644 --- a/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala +++ b/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala @@ -55,7 +55,7 @@ object EventSourcedStashOverflowSpec { SteppingInmemJournal.config("EventSourcedStashOverflow").withFallback(ConfigFactory.parseString(s""" pekko.persistence { typed { - stash-capacity = 1000 # enough to fail on stack size + stash-capacity = 2000 # enough to fail on stack size stash-overflow-strategy = "drop" } } From 96931909283b8b6b42fa8da734117015d79fa788 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Tue, 21 May 2024 17:17:24 +0100 Subject: [PATCH 2/2] make test fail by not allowing jvm exit --- .../typed/scaladsl/EventSourcedStashOverflowSpec.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala b/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala index bb3a0f34788..1c17280abd1 100644 --- a/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala +++ b/persistence-typed-tests/src/test/scala/org/apache/pekko/persistence/typed/scaladsl/EventSourcedStashOverflowSpec.scala @@ -59,6 +59,7 @@ object EventSourcedStashOverflowSpec { stash-overflow-strategy = "drop" } } + pekko.jvm-exit-on-fatal-error = off """)) }