Commit 6674c79
authored
Fix history events buildup from version reject (#1220)
When an orchestration was being rejected due to a versioning mismatch
an issue would cause the history events of the orchestration to build
continuously. This was caused by the orchestration adding an
OrchestrationStarted event before the versioning took place and was
saved even on a rejected version.
This change causes the versioning code to exit the process method
entirely instead of just prematurely end the process loop. This avoids
the commit of the history.
Signed-off-by: halspang <[email protected]>1 parent 1c09332 commit 6674c79
File tree
2 files changed
+12
-7
lines changed- src/DurableTask.Core
- test/DurableTask.AzureStorage.Tests
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
1059 | 1059 | | |
1060 | 1060 | | |
1061 | 1061 | | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
1065 | 1066 | | |
1066 | 1067 | | |
1067 | 1068 | | |
| |||
1080 | 1081 | | |
1081 | 1082 | | |
1082 | 1083 | | |
1083 | | - | |
1084 | | - | |
1085 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1086 | 1088 | | |
1087 | 1089 | | |
1088 | 1090 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2518 | 2518 | | |
2519 | 2519 | | |
2520 | 2520 | | |
| 2521 | + | |
| 2522 | + | |
| 2523 | + | |
2521 | 2524 | | |
2522 | 2525 | | |
2523 | 2526 | | |
| |||
0 commit comments