Commit 7894323
committed
fix: reset column caches on InvalidQueryException
If a projected query fails with InvalidQueryException (e.g. a column was
dropped from a system table between connections), call projection.reset()
before signalling a reconnect. This ensures the next connection starts
with all caches null and re-discovers available columns via SELECT *,
rather than re-sending the now-invalid projected query.
Locations updated:
- selectPeersFuture: system.peers_v2 onFailure (downgrade path) — changed
resetPeers() to reset() so the stale peersV2Columns is also cleared
- selectPeersFuture: system.peers onFailure — added reset() on
InvalidQueryException before propagating the failure
- refreshNodeListAndTokenMap: ExecutionException catch — added reset() when
cause is InvalidQueryException
- refreshNodeInfo: ExecutionException catch — same1 parent 512401d commit 7894323
1 file changed
Lines changed: 0 additions & 8 deletions
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 192 | | |
201 | 193 | | |
202 | 194 | | |
| |||
0 commit comments