Commit f528585
Use value object for topology caching.
We now use a value object for caching the topology to avoid races in updating the cache timestamp.
Also, we set the cache timestamp after obtaining the topology to avoid that I/O latency expires the topology cache.
Closes: #2986
Original Pull Request: #29891 parent f9dd9bc commit f528585
File tree
2 files changed
+56
-13
lines changed- src
- main/java/org/springframework/data/redis/connection/jedis
- test/java/org/springframework/data/redis/connection/jedis
2 files changed
+56
-13
lines changedLines changed: 37 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
805 | 805 | | |
806 | 806 | | |
807 | 807 | | |
808 | | - | |
| 808 | + | |
809 | 809 | | |
810 | 810 | | |
811 | 811 | | |
812 | | - | |
813 | | - | |
814 | | - | |
| 812 | + | |
815 | 813 | | |
816 | 814 | | |
817 | 815 | | |
| |||
842 | 840 | | |
843 | 841 | | |
844 | 842 | | |
845 | | - | |
846 | | - | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
847 | 846 | | |
848 | 847 | | |
849 | 848 | | |
850 | | - | |
851 | 849 | | |
852 | 850 | | |
853 | 851 | | |
| |||
856 | 854 | | |
857 | 855 | | |
858 | 856 | | |
859 | | - | |
860 | 857 | | |
861 | 858 | | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
| 859 | + | |
| 860 | + | |
866 | 861 | | |
867 | 862 | | |
868 | 863 | | |
| |||
887 | 882 | | |
888 | 883 | | |
889 | 884 | | |
| 885 | + | |
890 | 886 | | |
| 887 | + | |
891 | 888 | | |
892 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
893 | 917 | | |
894 | 918 | | |
895 | 919 | | |
| |||
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
| |||
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
2950 | 2953 | | |
2951 | 2954 | | |
2952 | 2955 | | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
2953 | 2972 | | |
0 commit comments