Commit 033a066
committed
Log warning in case of unexpected use of dev mode
The dev mode is activated when no address resolver is set, the host is
localhost, and the user is guest. The dev mode sets a resolver that
always uses localhost, this avoids problems when e.g. the metadata frame
returns the hostname of a local container that the client application
cannot reach.
This commit adds a warn-level log message if the client detects a local
cluster setup (because there are several addresses passed in to the
address resolver).
References #4201 parent 0710b97 commit 033a066
File tree
1 file changed
+11
-5
lines changed- src/main/java/com/rabbitmq/stream/impl
1 file changed
+11
-5
lines changedLines changed: 11 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
| |||
159 | 156 | | |
160 | 157 | | |
161 | 158 | | |
162 | | - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
| |||
0 commit comments