Skip to content

Commit c7b2d39

Browse files
committed
Doc comments for new regression tests.
1 parent 0164b45 commit c7b2d39

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

temporal-sdk/src/test/java/io/temporal/internal/replay/GetVersionInterleavedUpdateReplayTaskHandlerTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ public class GetVersionInterleavedUpdateReplayTaskHandlerTest {
3131
private static final String EXPECTED_SECOND_CHANGE_ID = "ChangeId2";
3232
private static final String TEST_TASK_QUEUE = "get-version-interleaved-update-replay";
3333

34+
/**
35+
* Regression test for the lower-level replay path behind the public replayer API.
36+
*
37+
* <p>We replay the same recorded history through the direct-query task handler so the fix is
38+
* verified at the state-machine layer that previously produced the ordering bug. Success here
39+
* shows replay no longer fails before query handling can complete.
40+
*/
3441
@Test
3542
public void testReplayDirectQueryWorkflowTaskSucceeds() throws Throwable {
3643
WorkflowExecutionHistory history =

temporal-sdk/src/test/java/io/temporal/workflow/versionTests/GetVersionInterleavedUpdateReplayTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ public class GetVersionInterleavedUpdateReplayTest {
2424
private static final String HISTORY_RESOURCE =
2525
"testGetVersionInterleavedUpdateReplayHistory.json";
2626

27+
/**
28+
* Regression test for the interleaved update/getVersion replay bug.
29+
*
30+
* <p>This replays the original failing history through the public {@link WorkflowReplayer} API
31+
* and verifies that replay now succeeds instead of surfacing the old {@code [TMPRL1100]}
32+
* nondeterminism failure.
33+
*/
2734
@Test
2835
public void testReplayHistory() throws Exception {
2936
WorkflowReplayer.replayWorkflowExecutionFromResource(

0 commit comments

Comments
 (0)