Commit 7a716ef
committed
fix(qwp): attach the throwable to the drainer's retryable-setup warning
The catch (Exception) setup path in BackgroundDrainer logged only
t.getMessage() and stored it as lastErrorMessage. For a JVM-raised NPE
(getMessage() == null on JDK 8, the release target) that produced
'drainer setup temporarily unavailable for slot ...: null' with no
exception class and no stack trace -- and since this path deliberately
leaves no .failed sentinel, a deterministic setup bug is retried on
every orphan scan while emitting that same contentless line forever.
The outer catches in the same method already attach the throwable
(LOG.error(..., slotPath, msg, t)); only this inner retryable catch
dropped it.
Log the throwable (SLF4J attaches the stack trace) and carry
t.toString() -- class plus message -- into lastErrorMessage so the
telemetry surface shows 'java.lang.NullPointerException' instead of
'null'. Diagnostics only; the retry-not-quarantine policy is unchanged.
sf package: 391 tests green.1 parent e0ebdf0 commit 7a716ef
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
586 | 592 | | |
587 | | - | |
| 593 | + | |
588 | 594 | | |
589 | 595 | | |
590 | 596 | | |
| |||
0 commit comments