dataroaring opened a new pull request, #60406:
URL: https://github.com/apache/doris/pull/60406
## Summary
- Suppress verbose stack trace logging for expected errors when backends are
unavailable:
- `HeartbeatMgr`: ConnectException (connection refused) during backend
heartbeat
- `DynamicPartitionScheduler`: "available backend" errors when creating
dynamic partitions
- Only log host and error message for these expected conditions
- Preserve full stack trace for other unexpected exceptions that need
investigation
## Background
When backends are down (e.g., during rolling restarts or maintenance), these
warnings flood the logs with stack traces that provide no diagnostic value
since the condition is expected.
**Before:**
```
WARN backend heartbeat got exception
org.apache.thrift.transport.TTransportException: java.net.ConnectException:
Connection refused
at org.apache.thrift.transport.TSocket.open(TSocket.java:255)
... (15 lines of stack trace)
```
**After:**
```
WARN backend heartbeat got exception, host: 127.0.0.1, error:
java.net.ConnectException: Connection refused
```
## Test plan
- [ ] Manual testing with backend down to verify log output is cleaner
- [ ] Verify other exceptions still log full stack trace
🤖 Generated with [Claude Code](https://claude.ai/code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]