temporalio / temporalio/sdk-java
TestWorkflowEnvironment schedules the first activity retry immediately
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 433
- フォーク
- 249
- 平均マージ
- 5日 6時間
- マージ済み PR(30日)
- 26
説明
Expected Behavior
With a retry policy like:
RetryOptions.newBuilder()
.setInitialInterval(Duration.ofSeconds(10))
.setBackoffCoefficient(2.0)
.build();
I would expect delays of 10, 20, 40, 80, so attempts (including the first one) run at T0, 10, 30, 70, 150.
Actual Behavior
Attempts run at T0, 0, 10, 30, 70 - the first retry gets scheduled immediately.
Steps to Reproduce the Problem
Check out https://github.com/nagl-stripe/sdk-java/commit/b4f764dfdc22102893be1916b325a40322ccd54e - it has a test case that would pass if the actual behavior were the expected behavior
This is very much not-urgent =)
Specifications
- Version: latest
- Platform: TestWorkflowEnviornment
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
コミット b4f764dfdc22102893be1916b325a40322ccd54e のテストケースから始め、TestWorkflowEnvironment が activity のリトライをどのようにスケジュールするかを調べます。10、20、40、80 秒の遅延を持つリトライポリシーを再現し、即座にリトライするのではなく、試行が T0、10、30、70、150 に発生することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- testing
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100