Commit 7ce915a
committed
Drop the ROLE_CHANGE (4001) close code
Reverts 9f3cb32. The server keeps NORMAL_CLOSURE on the role-change
CLOSE, so there is no 4001 on the wire for this client to classify.
4001 existed so the client's verbatim CLOSE echo would prove to the
server that it had read the server's CLOSE rather than having sent a
voluntary CLOSE that crossed it. The server takes identical action on
both branches -- the code only selected a log line -- while every client
released before 9f3cb32 treats a code outside NORMAL_CLOSURE/GOING_AWAY
as a head-of-line poison strike, escalating a routine demote to a
PROTOCOL_VIOLATION terminal that quarantines the store-and-forward slot.
Putting the code on the wire therefore costs data on mixed-version
fleets and buys a diagnostic; it needs a negotiated capability first.
Carrying the classification here anyway would leave the client claiming
to understand a code nothing sends, and the poison-frame test would pin
a contract with no counterparty. Strip both, and record in
qwp-nack-policy-v2.md that a distinguishable role-change code is gated
behind capability negotiation rather than simply absent.1 parent dde3c15 commit 7ce915a
4 files changed
Lines changed: 15 additions & 75 deletions
File tree
- core/src
- main/java/io/questdb/client/cutlass/qwp
- client/sf/cursor
- websocket
- test/java/io/questdb/client/test/cutlass/qwp/client/sf/cursor
- design
Lines changed: 6 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
1629 | 1629 | | |
1630 | 1630 | | |
1631 | 1631 | | |
1632 | | - | |
| 1632 | + | |
1633 | 1633 | | |
1634 | 1634 | | |
1635 | 1635 | | |
| |||
2394 | 2394 | | |
2395 | 2395 | | |
2396 | 2396 | | |
2397 | | - | |
2398 | | - | |
2399 | | - | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
2400 | 2400 | | |
2401 | | - | |
2402 | | - | |
| 2401 | + | |
2403 | 2402 | | |
2404 | 2403 | | |
2405 | 2404 | | |
| |||
Lines changed: 0 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | 87 | | |
98 | 88 | | |
99 | 89 | | |
| |||
144 | 134 | | |
145 | 135 | | |
146 | 136 | | |
147 | | - | |
148 | | - | |
149 | 137 | | |
150 | 138 | | |
151 | 139 | | |
| |||
Lines changed: 0 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | 35 | | |
37 | 36 | | |
38 | 37 | | |
| |||
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | 247 | | |
286 | 248 | | |
287 | 249 | | |
| |||
945 | 907 | | |
946 | 908 | | |
947 | 909 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
954 | | - | |
955 | | - | |
956 | | - | |
957 | | - | |
958 | 910 | | |
959 | 911 | | |
960 | 912 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
| 69 | + | |
| 70 | + | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
100 | 99 | | |
101 | 100 | | |
102 | 101 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
108 | 109 | | |
109 | 110 | | |
110 | 111 | | |
| |||
0 commit comments