Flaky test: RemotingSpec "should resume the outbound reader when passive read handoff fails" on Scala 3
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- scala
調査の方向性
remote/src/test/scala/org/apache/pekko/remote/classic/RemotingSpec.scala の797行目付近から始め、Scala 3 CIジョブで指定されたテストを再現します。壊れたパケットの後のパッシブ読み取りのハンドオフとアウトバウンドリーダーの動作を追跡し、そのうえでタイムアウトロジックとレジュームロジックのどちらが原因かを特定します。テストが実際の失敗を隠すことなく、確実に "after-handoff-failure" を返せれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
The test RemotingSpec — "should resume the outbound reader when passive read handoff fails" intermittently times out on the Scala 3 CI job.
Failure
java.lang.AssertionError: assertion failed: timeout (6 seconds) during expectMsg while waiting for after-handoff-failure
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at org.apache.pekko.testkit.TestKitBase.expectMsg_internal(TestKit.scala:471)
at org.apache.pekko.testkit.TestKitBase.expectMsg(TestKit.scala:448)
at org.apache.pekko.remote.classic.RemotingSpec.f$proxy19$1(RemotingSpec.scala:797)
Location
remote/src/test/scala/org/apache/pekko/remote/classic/RemotingSpec.scala:797
outboundRemoteHandle.association.write(payload("after-handoff-failure"))
receiverProbe.expectMsg("after-handoff-failure") // <-- times out here
Observed in
- PR #3095 (unrelated changes —
Source.queuedeprecation): CI run - The test was added by PR #3205
Analysis
The test sets up a passive read-only inbound association, sends a broken packet to trigger disassociation of the read-only endpoint, then expects the outbound writer to resume delivering messages. The expectMsg at line 797 times out, suggesting the outbound reader did not resume after the passive read handoff failure.
This is a timing-sensitive test involving multiple transport associations and handoffs. The 6-second timeout may be insufficient under CI load, or the resume logic may have a race condition that manifests more often on Scala 3 (possibly due to different compilation/optimization characteristics affecting thread scheduling).
Possible fixes
- Increase the
expectMsgtimeout with adilatedfactor - Investigate whether the resume logic in the endpoint reader has a race condition
- Add retry or
awaitAssertaround the assertion to tolerate transient timing
- 主要言語
- Scala
- スター
- 1.7k
- フォーク
- 212
- 平均マージ
- 20時間 44分
- マージ済み PR(30日)
- 104
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apache/pekko のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apache/pekko#1840 · コメント 8 件 ·
メンテナーはふだん 1 日以内に返信
-
Add wildcard bounds to Java DSL parameters that are needlessly invariant対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
apache/pekko#3712 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
Coordinator singleton lease loss permanently stops the local ShardRegion while the node is still Up対応中かも @He-Pin が 4 日前に担当しました。 オープンbug cluster
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
enhancement flaky make-tests-easier-to-run
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 73/100
lichess-org/lila#22298 ·
メンテナーはふだん 1 日以内に返信
-
Task 🔧
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
valkey-io/valkey-glide#7455 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
master is red: two chapter-title overrides orphaned by the plan update, and both titles are untranslated in compendium-en対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
lunduniversity/introprog#1005 · コメント 1 件 ·
メンテナーはふだん 7 日以内に返信