Fix test server ignoring whole-second retry deadlines (#3096) · temporalio/sdk-java@4a4e6b2 · GitHub
Skip to content

Commit 4a4e6b2

Browse files
alvinseeclaude
andauthored
Fix test server ignoring whole-second retry deadlines (#3096)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ecb7505 commit 4a4e6b2

3 files changed

Lines changed: 77 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions

‎temporal-test-server/src/main/java/io/temporal/internal/testservice/TestServiceRetryState.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ BackoffInterval getBackoffIntervalInSeconds(
129129

130130
Timestamp nextScheduleTime =
131131
Timestamps.add(currentTime, ProtobufTimeUtils.toProtoDuration(backoffDuration));
132-
if (expirationTime.getNanos() != 0
133-
&& Timestamps.compare(nextScheduleTime, expirationTime) > 0) {
132+
if (Timestamps.compare(nextScheduleTime, expirationTime) > 0) {
134133
return new BackoffInterval(RetryState.RETRY_STATE_TIMEOUT);
135134
}
136135
return new BackoffInterval(backoffDuration);
Lines changed: 72 additions & 0 deletions

0 commit comments

Comments
 (0)