Commit 4843256
authored
core: simplify DnsNameResolver.resolveAddresses()
`resolveAddresses()` is a private method, called only once. There is no
need to handle exceptions in multiple places.
The reason for creating this PR:
I have noticed an exception like this in the logs
```
2025-10-16 13:09:33.141 WARN [grpc-default-executor-222] ManagedChannelImpl [Channel<47>: (x.y.com:443)] Failed to resolve name. status=Status{code=UNAVAILABLE,
description=Unable to resolve host x.y.com,
cause=java.lang.RuntimeException: java.net.UnknownHostException: x.y.com: nodename nor servname provided, or not known
...
Caused by: java.net.UnknownHostException: x.y.com: nodename nor servname provided, or not known
...
}
```1 parent e25c414 commit 4843256
1 file changed
+3
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
211 | 210 | | |
212 | 211 | | |
213 | 212 | | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
| 213 | + | |
| 214 | + | |
228 | 215 | | |
229 | 216 | | |
230 | 217 | | |
| |||
280 | 267 | | |
281 | 268 | | |
282 | 269 | | |
| 270 | + | |
283 | 271 | | |
284 | 272 | | |
285 | 273 | | |
| |||
0 commit comments