Commit f898672
authored
fix: Fix undefined property warning in executeAutoPipeline (#1425)
Seen in an uncaughtException handler.
```
err_type=uncaughtException, exiting cause=TypeError: Cannot read property 'Symbol(callbacks)' of undefined
at Immediate.executeAutoPipeline (.../node_modules/ioredis/built/autoPipelining.js:34:31)
at Shim.applySegment (.../node_modules/newrelic/lib/shim/shim.js:1430:20)
at Immediate.wrapper (.../node_modules/newrelic/lib/shim/shim.js:2097:17)
at processImmediate (internal/timers.js:463:21)
```
A similar error was among the errors reported in
#1248
I suspect the process.exec might call the callback synchronously in the
same tick in some cases, immediately deleting the autopipeline from
running pipelines?1 parent cba83cb commit f898672
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
0 commit comments