apache / apache/pekko

failed: org.apache.pekko.actor.dispatch.DispatcherActorSpec

Open
#1,727 2 comments 0 reactions 0 assignees View on GitHub
failed
Dominant language
Scala
Stars
1.6k
Forks
211
Avg merge
1d 6h
Merged PRs (30d)
89

Description

refs: https://github.com/apache/pekko/actions/runs/12837234599/job/35800491988?pr=1724#step:7:5795

```scala
01-17 21:46:48.292] [info] - must respect the throughput setting *** FAILED *** (10 seconds, 46 milliseconds)
[01-17 21:46:48.292] [info] DispatcherActorSpec.this.convertToCheckingEqualizer[scala.Long](latch.getCount()).===[scala.Long](0L)(DispatcherActorSpec.this.typeCheckedConstraint[scala.Long, scala.Long](org.scalactic.Equivalence.default[scala.Long], scala.<:<.refl[scala.Long])) was false (DispatcherActorSpec.scala:111)
[01-17 21:46:48.293] [info] org.scalatest.exceptions.TestFailedException:
[01-17 21:46:48.293] [info] at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:476)
[01-17 21:46:48.293] [info] at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:421)
[01-17 21:46:48.293] [info] at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1385)
[01-17 21:46:48.293] [info] at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1460)
[01-17 21:46:48.293] [info] at org.apache.pekko.actor.dispatch.DispatcherActorSpec.f$proxy3$1(DispatcherActorSpec.scala:111)
[01-17 21:46:48.293] [info] at org.apache.pekko.actor.dispatch.DispatcherActorSpec.$init$$$anonfun$1$$anonfun$3(DispatcherActorSpec.scala:86)
[01-17 21:46:48.295] [info] at org.scalatest.Transformer.apply$$anonfun$1(Transformer.scala:22)
[01-17 21:46:48.295] [info] at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
[01-17 21:46:48.295] [info] at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:31)
[01-17 21:46:48.295] [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
[01-17 21:46:48.295] [info] at org.scalatest.Transformer.apply(Transformer.scala:22)
[01-17 21:46:48.296] [info] at org.scalatest.Transformer.apply(Transformer.scala:21)
[01-17 21:46:48.296] [info] at org.scalatest.wordspec.AnyWordSpecLike$$anon$3.apply(AnyWordSpecLike.scala:1118)
[01-17 21:46:48.296] [info] at org.scalatest.TestSuite.withFixture(TestSuite.scala:196)
[01-17 21:46:48.296] [info] at org.scalatest.TestSuite.withFixture$(TestSuite.scala:138)
[01-17 21:46:48.296] [info] at org.apache.pekko.testkit.PekkoSpec.withFixture(PekkoSpec.scala:80)
[01-17 21:46:48.296] [info] at org.scalatest.wordspec.AnyWordSpecLike.invokeWithFixture$1(AnyWordSpecLike.scala:1124)
[01-17 21:46:48.296] [info] at org.scalatest.wordspec.AnyWordSpecLike.runTest$$anonfun$1(AnyWordSpecLike.scala:1128)
[01-17 21:46:48.296] [info] at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
[01-17 21:46:48.296] [info] at org.scalatest.wordspec.AnyWordSpecLike.runTest(AnyWordSpecLike.scala:1128)
[01-17 21:46:48.296] [info] at org.scalatest.wordspec.AnyWordSpecLike.runTest$(AnyWordSpecLike.scala:44)
[01-17 21:46:48.296] [info] at org.apache.pekko.testkit.PekkoSpec.runTest(PekkoSpec.scala:80)
[01-17 21:46:48.296] [info] at org.scalatest.wordspec.AnyWordSpecLike.runTests$$anonfun$1(AnyWordSpecLike.scala:1187)
[01-17 21:46:48.296] [info] at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:413)
[01-17 21:46:48.296] [info] at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[01-17 21:46:48.296] [info] at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[01-17 21:46:48.296] [info] at scala.collection.immutable.List.foreach(List.scala:334)
[01-17 21:46:48.296] [info] at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
[01-17 21:46:48.296] [info] at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
[01-17 21:46:48.297] [info] at org.scalatest.SuperEngine.traverseSubNodes$1$$anonfun$1(Engine.scala:427)
[01-17 21:46:48.297] [info] at scala.runtime.function.JProcedure1.apply(JProcedure1.java:15)
[01-17 21:46:48.297] [info] at scala.runtime.function.JProcedure1.apply(JProcedure1.java:10)
[01-17 21:46:48.297] [info] at scala.collection.immutable.List.foreach(List.scala:334)
[01-17 21:46:48.297] [info] at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:429)
[01-17 21:46:48.297] [info] at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
[01-17 21:46:48.297] [info] at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
[01-17 21:46:48.297] [info] at org.scalatest.wordspec.AnyWordSpecLike.runTests(AnyWordSpecLike.scala:1187)
[01-17 21:46:48.297] [info] at org.scalatest.wordspec.AnyWordSpecLike.runTests$(AnyWordSpecLike.scala:44)
[01-17 21:46:48.297] [info] at org.apache.pekko.testkit.PekkoSpec.runTests(PekkoSpec.scala:80)
[01-17 21:46:48.297] [info] at org.scalatest.Suite.run(Suite.scala:1114)
[01-17 21:46:48.297] [info] at org.scalatest.Suite.run$(Suite.scala:564)
[01-17 21:46:48.297] [info] at org.apache.pekko.testkit.PekkoSpec.org$scalatest$wordspec$AnyWordSpecLike$$super$run(PekkoSpec.scala:80)
[01-17 21:46:48.297] [info] at org.scalatest.wordspec.AnyWordSpecLike.run$$anonfun$1(AnyWordSpecLike.scala:1232)
[01-17 21:46:48.297] [info] at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
[01-17 21:46:48.297] [info] at org.scalatest.wordspec.AnyWordSpecLike.run(AnyWordSpecLike.scala:1232)
[01-17 21:46:48.298] [info] at org.scalatest.wordspec.AnyWordSpecLike.run$(AnyWordSpecLike.scala:44)
[01-17 21:46:48.298] [info] at org.apache.pekko.testkit.PekkoSpec.org$scalatest$BeforeAndAfterAll$$super$run(PekkoSpec.scala:80)
[01-17 21:46:48.298] [info] at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
[01-17 21:46:48.298] [info] at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:217)
[01-17 21:46:48.298] [info] at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:135)
[01-17 21:46:48.298] [info] at org.apache.pekko.testkit.PekkoSpec.run(PekkoSpec.scala:80)
[01-17 21:46:48.298] [info] at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
[01-17 21:46:48.298] [info] at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
[01-17 21:46:48.298] [info] at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
[01-17 21:46:48.298] [info] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
[01-17 21:46:48.298] [info] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[01-17 21:46:48.298] [info] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[01-17 21:46:48.303] [info] at java.base/java.lang.Thread.run(Thread.java:829)
```

Contributor guide

Open the contributing guide

Research direction

Start with DispatcherActorSpec.scala, especially the "must respect the throughput setting" test and the assertion at line 111; reproduce the failure using the DispatcherActorSpec test entry point. Trace the latch and throughput behavior shown by the test, and consider the issue done when the test reliably passes without weakening its assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
distributed-systems, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.