Commit 6be7034
fix: prevent session hang when system.client_routes table is absent
Pre-load client routes during init() before topology discovery. When the
routes cache is empty (table doesn't exist on older Scylla versions),
buildNodeEndPoint falls back to DefaultEndPoint instead of creating
ClientRoutesEndPoint that would fail to resolve, causing infinite
connection retry loops and session builder hangs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 30d6c4b commit 6be7034
1 file changed
Lines changed: 10 additions & 1 deletion
File tree
- core/src/main/java/com/datastax/oss/driver/internal/core/metadata
core/src/main/java/com/datastax/oss/driver/internal/core/metadata/ClientRoutesTopologyMonitor.java
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
93 | 96 | | |
94 | 97 | | |
95 | 98 | | |
| |||
242 | 245 | | |
243 | 246 | | |
244 | 247 | | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
245 | 254 | | |
246 | 255 | | |
247 | 256 | | |
| |||
0 commit comments