Skip to content

Commit 31e4195

Browse files
committed
[visibility] attempt to produce interleaved replay behavior with
workflow.Async
1 parent 515c90d commit 31e4195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporal-sdk/src/main/java/io/temporal/internal/sync/SyncWorkflowContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,7 @@ public int getVersion(String changeId, int minSupported, int maxSupported) {
11741174
* Previously the SDK would yield on the getVersion call to the scheduler. This is not ideal because it can lead to non-deterministic
11751175
* scheduling if the getVersion call was removed.
11761176
* */
1177-
if (replayContext.tryUseSdkFlag(SdkFlag.SKIP_YIELD_ON_VERSION)) {
1177+
if (replayContext.checkSdkFlag(SdkFlag.SKIP_YIELD_ON_VERSION)) {
11781178
// This can happen if we are replaying a workflow and encounter a getVersion call that did not
11791179
// exist on the original execution and the range does not include the default version.
11801180
if (versionToUse == null) {

0 commit comments

Comments
 (0)