Commit 7d8f28b
authored
CNDB-16307: respect storage compatibility mode when dispatching hints (#2176)
### What is the issue
After CNDB-16249, hints are written with the storage-compatible
messaging version (e.g., VERSION_40), but dispatch was still using the
peer's negotiated version (VERSION_DS_20). This mismatch forced hints to
be decoded and re-encoded on dispatch, which fails when the tenant is
unassigned because tables are unknown.
### What does this PR fix and why was it fixed
Cap the dispatch version to the storage compatibility mode's version so
hints can use the encoded path (no deserialization) when the versions
match.1 parent c32e5af commit 7d8f28b
File tree
1 file changed
+7
-1
lines changed- src/java/org/apache/cassandra/hints
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
295 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
296 | 302 | | |
297 | 303 | | |
298 | 304 | | |
| |||
0 commit comments