Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Failed: org.apache.pekko.http.impl.engine.ws.MessageSpec

未关闭
#321 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
scala
领域
backend, testing

调研方向

从 org.apache.pekko.http.impl.engine.ws.MessageSpec 开始,尤其关注 MessageSpec.scala:977 附近失败的测试。根据链接的 GitHub Actions 运行复现该失败,并检查 streamed-binary-to-strict-binary 情况下的超时。完成标准是 infinite-stream 测试在没有五秒 Future timeout 的情况下完成。

由索引模型根据 Issue 内容生成。

描述

failed

https://github.com/apache/incubator-pekko-http/actions/runs/6111528161/job/16587278959?pr=320#step:8:1287

- should convert streamed binary to strict binary if stream is infinite *** FAILED *** (5 seconds, 437 milliseconds)
  [info]     java.util.concurrent.TimeoutException: Future timed out after [5 seconds]
  [info]     at scala.concurrent.impl.Promise$DefaultPromise.tryAwait0(Promise.scala:248)
  [info]     at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:255)
  [info]     at scala.concurrent.impl.Promise$DefaultPromise.ready(Promise.scala:104)
  [info]     at scala.concurrent.Await$.$anonfun$ready$1(package.scala:174)
  [info]     at scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:62)
  [info]     at scala.concurrent.Await$.ready(package.scala:124)
  [info]     at org.apache.pekko.http.impl.engine.ws.MessageSpec.$anonfun$new$99(MessageSpec.scala:977)
  [info]     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)
  [info]     at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
  [info]     at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
  [info]     at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
  [info]     at org.scalatest.Transformer.apply(Transformer.scala:22)
  [info]     at org.scalatest.Transformer.apply(Transformer.scala:20)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike$$anon$3.apply(AnyWordSpecLike.scala:1239)
  [info]     at org.apache.pekko.http.impl.util.WithLogCapturing.$anonfun$withFixture$1(WithLogCapturing.scala:59)
  [info]     at org.apache.pekko.testkit.EventFilter.intercept(TestEventListener.scala:129)
  [info]     at org.apache.pekko.http.impl.util.WithLogCapturing.withFixture(WithLogCapturing.scala:57)
  [info]     at org.apache.pekko.http.impl.util.WithLogCapturing.withFixture$(WithLogCapturing.scala:44)
  [info]     at org.apache.pekko.http.impl.util.PekkoSpecWithMaterializer.withFixture(PekkoSpecWithMaterializer.scala:24)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.invokeWithFixture$1(AnyWordSpecLike.scala:[1237](https://github.com/apache/incubator-pekko-http/actions/runs/6111528161/job/16587278959?pr=320#step:8:1293))
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$runTest$1(AnyWordSpecLike.scala:1249)
  [info]     at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.runTest(AnyWordSpecLike.scala:1249)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.runTest$(AnyWordSpecLike.scala:1231)
  [info]     at org.apache.pekko.testkit.PekkoSpec.runTest(PekkoSpec.scala:70)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$runTests$1(AnyWordSpecLike.scala:1308)
  [info]     at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
  [info]     at scala.collection.immutable.List.foreach(List.scala:333)
  [info]     at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
  [info]     at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
  [info]     at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
  [info]     at scala.collection.immutable.List.foreach(List.scala:333)
  [info]     at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
  [info]     at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:390)
  [info]     at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:427)
  [info]     at scala.collection.immutable.List.foreach(List.scala:333)
  [info]     at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
  [info]     at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
  [info]     at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.runTests(AnyWordSpecLike.scala:1308)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.runTests$(AnyWordSpecLike.scala:1307)
  [info]     at org.apache.pekko.testkit.PekkoSpec.runTests(PekkoSpec.scala:70)
  [info]     at org.scalatest.Suite.run(Suite.scala:1114)
  [info]     at org.scalatest.Suite.run$(Suite.scala:1096)
  [info]     at org.apache.pekko.testkit.PekkoSpec.org$scalatest$wordspec$AnyWordSpecLike$$super$run(PekkoSpec.scala:70)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.$anonfun$run$1(AnyWordSpecLike.scala:1353)
  [info]     at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.run(AnyWordSpecLike.scala:1353)
  [info]     at org.scalatest.wordspec.AnyWordSpecLike.run$(AnyWordSpecLike.scala:1351)
  [info]     at org.apache.pekko.testkit.PekkoSpec.org$scalatest$BeforeAndAfterAll$$super$run(PekkoSpec.scala:70)
  [info]     at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
  [info]     at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
  [info]     at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
  [info]     at org.apache.pekko.testkit.PekkoSpec.run(PekkoSpec.scala:70)
  [info]     at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
  [info]     at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
  [info]     at sbt.TestRunner.runTest$1(TestFramework.scala:153)
  [info]     at sbt.TestRunner.run(TestFramework.scala:168)
  [info]     at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.$anonfun$apply$1(TestFramework.scala:336)
  [info]     at sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:296)
  [info]     at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
  [info]     at sbt.TestFramework$$anon$3$$anonfun$$lessinit$greater$1.apply(TestFramework.scala:336)
  [info]     at sbt.TestFunction.apply(TestFramework.scala:348)
  [info]     at sbt.Tests$.processRunnable$1(Tests.scala:475)
  [info]     at sbt.Tests$.$anonfun$makeSerial$1(Tests.scala:481)
  [info]     at sbt.std.Transform$$anon$3.$anonfun$apply$2(Transform.scala:47)
  [info]     at sbt.std.Transform$$anon$4.work(Transform.scala:69)
  [info]     at sbt.Execute.$anonfun$submit$2(Execute.scala:283)
  [info]     at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:24)
  [info]     at sbt.Execute.work(Execute.scala:292)
  [info]     at sbt.Execute.$anonfun$submit$1(Execute.scala:283)
  [info]     at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
  [info]     at sbt.CompletionService$$anon$2.call(CompletionService.scala:65)
  [info]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  [info]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
  [info]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  [info]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
  [info]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
  [info]     at java.lang.Thread.run(Thread.java:750)
主要语言
Scala
星标
196
派生
56
平均合并
1 天 18 小时
30 天内合并 PR
43

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

apache/pekko-http 的其他 Issue

查看 apache/pekko-http 的全部 Issue

相似的 Issue

更多 Scala Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。