Commit bd408cf
[Hitless Upgrades] Zero-server-side configuration with client-side opt-in (redis#3380)
* Support for Client-side opt-in
A client can tell the server if it wants to receive maintenance push notifications via the following command:
CLIENT MAINT_NOTIFICATIONS <ON | OFF> [parameter value parameter value ...]
* update maintenance events to latest format
- MIGRATING <seq_number> <time> <shard_id-s>: A shard migration is going to start within <time> seconds.
- MIGRATED <seq_number> <shard_id-s>: A shard migration ended.
- FAILING_OVER <seq_number> <time> <shard_id-s>: A shard failover of a healthy shard started.
- FAILED_OVER <seq_number> <shard_id-s>: A shard failover of a healthy shard ended.
- MOVING <seq_number> <time> <endpoint>: A specific endpoint is going to move to another node within <time> seconds
* clean up
* Update FAILED_OVER & MIGRATED to include additional time field
* update is private reserver check & add unit tests
update is private reserver check
* add unit tests for handshake with enabled maintenance events
* add missing copyrights/docs
* format
* address review comments
* Revert address after rebind operation expires
* Update event's validation spec
- MIGRATING <seq_number> <time> <shard_id-s>: A shard migration is going to start within <time> seconds.
- MIGRATED <seq_number> <shard_id-s>: A shard migration ended.
- FAILING_OVER <seq_number> <time> <shard_id-s>: A shard failover of a healthy shard started.
- FAILED_OVER <seq_number> <shard_id-s>: A shard failover of a healthy shard ended.
- MOVING <seq_number> <time> <endpoint>: A specific endpoint is going to move to another node within <time> seconds
* rebase
* format after rebase
* Apply suggestions from code review
Co-authored-by: Tihomir Krasimirov Mateev <[email protected]>
* javadoc updated
* Update src/main/java/io/lettuce/core/internal/NetUtils.java
Co-authored-by: Tihomir Krasimirov Mateev <[email protected]>
---------
Co-authored-by: Tihomir Krasimirov Mateev <[email protected]>1 parent f35a488 commit bd408cf
File tree
24 files changed
+1272
-181
lines changed- src
- main/java/io/lettuce/core
- internal
- protocol
- test/java
- biz/paluch/redis/extensibility
- io/lettuce
- core
- internal
- protocol
- scenario
- test
24 files changed
+1272
-181
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
629 | 632 | | |
630 | 633 | | |
631 | 634 | | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
632 | 643 | | |
633 | | - | |
| 644 | + | |
634 | 645 | | |
635 | 646 | | |
636 | 647 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
| 271 | + | |
272 | 272 | | |
273 | | - | |
| 273 | + | |
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
278 | | - | |
| 277 | + | |
| 278 | + | |
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | | - | |
609 | | - | |
| 608 | + | |
| 609 | + | |
610 | 610 | | |
611 | | - | |
612 | | - | |
| 611 | + | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
59 | 71 | | |
0 commit comments