Commit 22e41e1
committed
fix(jepsen-zset): guard nil .getMessage on exception :error fields
Throwable.getMessage() can return nil when the exception was constructed
without a detail message. Without a guard, the op would record
:error nil -- an unhelpful signal that hides the real failure mode.
Wrap every .getMessage call feeding :error (or an error string) with
(or (.getMessage t) (str t)) so the diagnostic falls back to the
exception's class + inner state when no message is attached.
Applies to three sites in redis_zset_safety_workload.clj:
- coerce-zincrby-score's Throwable branch
- setup! cleanup-failed ex-info message
- invoke!'s catch-all :info error recorder1 parent 623d5c2 commit 22e41e1
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
0 commit comments