Commit acf11e1
committed
Guard HMGET against empty payload keys in GetWorkflowInstanceHistory
When an instance's history stream is empty, payloadKeys is empty and
HMGET is called with no fields, which Redis rejects with 'ERR wrong
number of arguments for hmget'. Guard the payload fetch with
len(payloadKeys) > 0, mirroring the existing guard in workflow.go.1 parent 92ebb1a commit acf11e1
1 file changed
Lines changed: 10 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
| 100 | + | |
| 101 | + | |
107 | 102 | | |
108 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
0 commit comments