Commit 6f96c84
authored
CORE: Track HELLO and AUTH state for reconnection (#5145)
- Add update_username() and update_protocol() methods to Client for persisting authentication state
- Add update_connection_username() and update_connection_protocol() methods to ClusterConnection for cluster-wide state updates
- Add UpdateConnectionUsername and UpdateConnectionProtocol operations to cluster routing
- Reclassify AUTH command as write operation in cluster routing to ensure state is tracked across all nodes
- Update CHANGELOG.md to document HELLO and AUTH state tracking feature
- Ensure reconnections preserve protocol version and username from previous successful connections
Signed-off-by: affonsov <67347924+affonsov@users.noreply.github.com>
Co-authored-by: Pratheep Kumar <pratheepkumar0403@gmail.com>1 parent f20ce2c commit 6f96c84
File tree
8 files changed
+812
-3
lines changed- glide-core
- redis-rs/redis/src
- cluster_async
- src/client
- tests
8 files changed
+812
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
605 | 633 | | |
606 | 634 | | |
607 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
359 | 394 | | |
360 | 395 | | |
361 | 396 | | |
| |||
683 | 718 | | |
684 | 719 | | |
685 | 720 | | |
| 721 | + | |
| 722 | + | |
686 | 723 | | |
687 | 724 | | |
688 | 725 | | |
| |||
2621 | 2658 | | |
2622 | 2659 | | |
2623 | 2660 | | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
2624 | 2671 | | |
2625 | 2672 | | |
2626 | 2673 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
| 598 | + | |
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| |||
654 | 654 | | |
655 | 655 | | |
656 | 656 | | |
| 657 | + | |
657 | 658 | | |
658 | 659 | | |
659 | 660 | | |
| |||
750 | 751 | | |
751 | 752 | | |
752 | 753 | | |
753 | | - | |
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| |||
0 commit comments