This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
/
00-RELEASENOTES
4137 lines (3159 loc) · 139 KB
/
00-RELEASENOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
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
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
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
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
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
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
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
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Redis 4.0 release notes
=======================
--------------------------------------------------------------------------------
Upgrade urgency levels:
LOW: No need to upgrade unless there are new features you want to use.
MODERATE: Program an upgrade of the server, but it's not urgent.
HIGH: There is a critical bug that may affect a subset of users. Upgrade!
CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
--------------------------------------------------------------------------------
================================================================================
Redis 4.0.6 Released Thu Dec 4 17:54:10 CET 2017
================================================================================
Upgrade urgency CRITICAL: More errors in the fixes for PSYNC2 in Redis 4.0.5
were identified.
This release fixes yet more errors present in the 4.0.5 fixes, that could
affect slaves. Moreover another critical issue in quicklists, when they are
used at a massive memory scale, was fixed in this release. Upgrading from
any 4.0.x release, especially if you are running 4.0.4 or 4.0.5, is highly
recommended.
Note that while this fix for 4.0.6 was written in an hurry as well, this
time we took extra precautions in order to avoid writing a broken patch:
1. The code was reviewed by two developers independently.
2. A regression test about the problem introduced in 4.0.4/5 was added.
3. Resisting to duplicated Lua scripts loading into the Lua engine is now
the default action of the loading function, thus it's simpler to stress
its behavior.
4. The code section was tested with Valgrind.
The following is the list of commits included in this release:
zhaozhao.zz in commit 57786b14:
quicklist: change the len of quicklist to unsigned long
2 files changed, 4 insertions(+), 4 deletions(-)
zhaozhao.zz in commit 2211540d:
quicklist: fix the return value of quicklistCount
2 files changed, 2 insertions(+), 2 deletions(-)
antirez in commit c85c84be:
Refactoring: improve luaCreateFunction() API.
3 files changed, 38 insertions(+), 58 deletions(-)
antirez in commit 85b24770:
Remove useless variable check from luaCreateFunction().
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit a945e5c0:
Fix issue #4505, Lua RDB AUX field loading of existing scripts.
1 file changed, 9 insertions(+), 3 deletions(-)
antirez in commit 65a2e40a:
Regression test for #4505 (Lua AUX field loading).
1 file changed, 22 insertions(+), 1 deletion(-)
antirez in commit d6c70f22:
DEBUG change-repl-id implemented.
1 file changed, 7 insertions(+)
================================================================================
Redis 4.0.5 Released Thu Dec 1 16:03:32 CET 2017
================================================================================
Upgrade urgency CRITICAL: Redis 4.0.4 fix for PSYNC2 was broken, causing the
slave to crash when receiving an RDB file from the
master that contained a duplicated Lua script.
Please upgrade ASAP if you are with 4.0.4 and you use any form of Lua scripting
because this problem will easily crash Redis.
================================================================================
Redis 4.0.4 Released Thu Nov 30 18:42:12 CET 2017
================================================================================
Upgrade urgency CRITICAL: Several PSYNC2 bugs can corrupt the slave data set
after a restart and a successful PSYNC2 handshake.
This is a quick followup to Redis 4.0.3 since I forgot to add a few fixes...
that are actually described in the 4.0.3 changelog (but not in the list of
commits). Basically it's the following commits, implementing the ability
to persist scripts into RDB files for a successful PSYNC, otherwise a corruption
could happen when a slave is restarted and receives EVALSHA from the master
about scripts it does not know:
8449227f PSYNC2: Fix off by one buffer size in luaCreateFunction().
eeac1d35 PSYNC2: just store script bodies into RDB.
fb0441a8 PSYNC2: luaCreateFunction() should handle NULL client parameter.
0429db3c PSYNC2: Save Lua scripts state into RDB file.
d06fbbdd Regression test: Slave restart with EVALSHA in backlog issue #4483.
ab3d3aca Prevent corruption of server.executable after DEBUG RESTART.
b7c7edf9 Be more verbose when DEBUG RESTART fails.
Please upgrade ASAP to 4.0.4 becuase 4.0.3 had an incomplete set of fixes.
Cheers and sorry for the 4.0.3 fiasco ;-)
Salvatore
================================================================================
Redis 4.0.3 Released Thu Nov 30 13:14:50 CET 2017
================================================================================
Upgrade urgency CRITICAL: Several PSYNC2 bugs can corrupt the slave data set
after a restart and a successful PSYNC2 handshake.
Hi all, Redis 4.0.3 contains several bug fixes to different parts of Redis 4.0,
but the highlight is definitely in the "PSYNC after restart" that the new
RDB format, containing replication metadata information, was able to provide
to Redis 4.0. There were several bugs that are addressed in this release.
Moreover several LFU fixes improve the ability of Redis to correctly estimate
the popularity of keys. This release also fixes important bugs in Redis modules,
including bugs related to replication of modules commands, reloading the same
module multiple times, and other related things. Finally there is even a
security fix related to loading a corrupted Cluster state from a corrupted
file. We advice to upgrade ASAP. Check the list of commits for credits, several
people helped a lot in this release. I'm grateful to each of them.
Cheers,
Salvatore
antirez in commit d766322e:
LFU: Fix LFUDecrAndReturn() to just decrement.
1 file changed, 3 insertions(+), 13 deletions(-)
zhaozhao.zz in commit 6544796a:
LFU: add hotkeys option to redis-cli
1 file changed, 135 insertions(+)
zhaozhao.zz in commit e2355c19:
LFU: do some changes about LFU to find hotkeys
4 files changed, 39 insertions(+), 19 deletions(-)
zhaozhao.zz in commit 22969a13:
LFU: change lfu* parameters to int
2 files changed, 3 insertions(+), 3 deletions(-)
zhaozhao.zz in commit 6b71f714:
LFU: fix the missing of config get and rewrite
1 file changed, 6 insertions(+), 2 deletions(-)
Felix Krause in commit 2090052e:
Update link to https and use inline link
1 file changed, 1 insertion(+), 1 deletion(-)
Bo Cai in commit a75f2025:
redis-cli.c typo: Requets -> Requests.
1 file changed, 1 insertion(+), 1 deletion(-)
Bo Cai in commit 76aab08f:
redis-cli.c typo: helpe -> helper.
1 file changed, 1 insertion(+), 1 deletion(-)
Sébastien Fievet in commit b6fe5074:
Fix some typos
1 file changed, 3 insertions(+), 3 deletions(-)
antirez in commit eda5cb0a:
t_hash.c: clarify calling two times the same function.
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit 4a60fbd8:
adlist: fix listJoin() in the case the second list is empty.
1 file changed, 1 insertion(+), 1 deletion(-)
Chris Lamb in commit 060eb3b2:
Correct spelling of "faield".
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 3c942b12:
Improve OBJECT HELP descriptions.
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit 6b6a83c7:
Fix entry command table entry for OBJECT for HELP option.
1 file changed, 1 insertion(+), 1 deletion(-)
Itamar Haber in commit 048097ad:
Adds `OBJECT help`
1 file changed, 18 insertions(+), 3 deletions(-)
David Carlier in commit 906134fe:
Fix undefined behavior constant defined.
2 files changed, 10 insertions(+), 2 deletions(-)
rouzier in commit 03657e88:
Fix file descriptor leak and error handling
1 file changed, 6 insertions(+), 3 deletions(-)
Itamar Haber in commit 52fda013:
Prevents `OBJECT freq` with `noeviction`
1 file changed, 2 insertions(+), 2 deletions(-)
Itamar Haber in commit 15bc8e97:
Adds -u <uri> option to redis-cli.
1 file changed, 89 insertions(+)
antirez in commit f30454c1:
Test: regression test for latency expire events logging bug.
1 file changed, 14 insertions(+)
zhaozhao.zz in commit 1e7227f4:
expire & latency: fix the missing latency records generated by expire
1 file changed, 11 insertions(+), 8 deletions(-)
antirez in commit 9524fce0:
Modules: fix memory leak in RM_IsModuleNameBusy().
1 file changed, 3 insertions(+), 7 deletions(-)
antirez in commit 2a27da1c:
PSYNC2: reorganize comments related to recent fixes.
2 files changed, 24 insertions(+), 26 deletions(-)
zhaozhao.zz in commit e0c2a0ec:
PSYNC2: persist cached_master's dbid inside the RDB
1 file changed, 16 insertions(+), 2 deletions(-)
zhaozhao.zz in commit 2eca8aed:
PSYNC2: make repl_stream_db never be -1
1 file changed, 6 insertions(+), 9 deletions(-)
zhaozhao.zz in commit 35942383:
PSYNC2: clarify the scenario when repl_stream_db can be -1
2 files changed, 21 insertions(+), 9 deletions(-)
zhaozhao.zz in commit be1b9ee0:
PSYNC2 & RDB: fix the missing rdbSaveInfo for BGSAVE
1 file changed, 4 insertions(+), 1 deletion(-)
zhaozhao.zz in commit 9f69e179:
PSYNC2: safe free backlog when reach the time limit
1 file changed, 12 insertions(+)
zhaozhao.zz in commit 0205dd01:
Modules: handle the busy module name
2 files changed, 19 insertions(+), 2 deletions(-)
zhaozhao.zz in commit 3cce566e:
Modules: handle the conflict of registering commands
1 file changed, 28 insertions(+), 21 deletions(-)
Oran Agra in commit d01f163c:
fix string to double conversion, stopped parsing on \0 even if the string has more data.
2 files changed, 9 insertions(+), 2 deletions(-)
antirez in commit 9a3e15c6:
Modules: fix for scripting replication of modules commands.
2 files changed, 9 insertions(+), 7 deletions(-)
Yossi Gottlieb in commit fa87879b:
Nested MULTI/EXEC may replicate in different cases.
2 files changed, 10 insertions(+)
zhaozhao.zz in commit bc7076b0:
rehash: handle one db until finished
1 file changed, 5 insertions(+), 2 deletions(-)
kmiku7 in commit 7675b00a:
fix boundary case for _dictNextPower
1 file changed, 1 insertion(+), 1 deletion(-)
Itamar Haber in commit f31d9b12:
Fixes an off-by-one in argument handling of `MEMORY USAGE`
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 897d8571:
SDS: improve sdsRemoveFreeSpace() to avoid useless data copy.
1 file changed, 12 insertions(+), 5 deletions(-)
antirez in commit 1ee6af4d:
Fix saving of zero-length lists.
1 file changed, 3 insertions(+), 2 deletions(-)
antirez in commit 1740300f:
Fix buffer overflows occurring reading redis.conf.
1 file changed, 3 insertions(+)
antirez in commit b25c2451:
Regression test for issue #4391.
1 file changed, 4 insertions(+)
antirez in commit 1847b987:
More robust object -> double conversion.
1 file changed, 8 insertions(+), 4 deletions(-)
antirez in commit c94cd1d8:
Limit statement in RM_BlockClient() to 80 cols.
1 file changed, 5 insertions(+), 4 deletions(-)
Dvir Volk in commit 193e4acc:
Added safety net preventing redis from crashing if a module decide to block in MULTI
1 file changed, 8 insertions(+), 5 deletions(-)
Dvir Volk in commit d131921c:
Renamed GetCtxFlags to GetContextFlags
3 files changed, 11 insertions(+), 11 deletions(-)
Dvir Volk in commit 2e71edcc:
Added support for module context flags with RM_GetCtxFlags
3 files changed, 177 insertions(+)
================================================================================
Redis 4.0.2 Released Thu Sep 21 15:47:53 CEST 2017
================================================================================
Upgrade urgency HIGH: Several potentially critical bugs fixed.
Hello, this release addresses several significant bugs in Redis 4.0:
1. A number of bugs were fixed in the area of PSYNC2 replication in the
specific area of restarting an instance with an RDB file having the
repliacation meta-data to continue without a full resynchronization. The
old code allowed several inconsistencies under certain conditions, like
starting a master with an RDB file generated by a slave, and later using
such master to connect previous slaves having the same replication history.
Because of other bugs, sometimes the replication resulted in a full
synchronization even if actually a partial resynchronization was possible
and so forth. Several commits by different authors fix different bugs here.
2. AOF flush on SHUTDOWN did not cared to really write the AOF buffers
(not in the kernel but in the Redis process memory) to disk before exiting.
Calling SHUTDOWN during traffic resulted into not every operation to be
persisted on disk.
3. The SLOWLOG could reference values inside string objects stored at keys,
creating a race condition during FLUSHALL ASYNC while the DB is reclaimed
in another thread.
There are other smaller bugs addessed in this relase, see the full commit
history below for more information.
A big thank you to all the contributors of this release. Without the
help I received, Redis 4.0 would take a much longer time to mature. It's
a real pleasure to work together with people around the world, while making
Redis better.
antirez in commit 1c60b7a6:
Clarify comment in change fixing #4323.
1 file changed, 6 insertions(+), 2 deletions(-)
zhaozhao.zz in commit 368124e8:
Lazyfree: avoid memory leak when free slowlog entry
1 file changed, 5 insertions(+), 2 deletions(-)
antirez in commit 79567b6e:
PSYNC2: More refinements related to #4316.
2 files changed, 14 insertions(+), 11 deletions(-)
zhaozhao.zz in commit f1194649:
PSYNC2: make persisiting replication info more solid
4 files changed, 33 insertions(+), 9 deletions(-)
antirez in commit 097a5556:
PSYNC2: Fix the way replication info is saved/loaded from RDB.
4 files changed, 49 insertions(+), 23 deletions(-)
antirez in commit f1a2cbfd:
PSYNC2: Create backlog on slave partial sync as well.
1 file changed, 5 insertions(+)
antirez in commit 0c0b77d1:
Add MEMORY DOCTOR to MEMORY HELP.
1 file changed, 3 insertions(+), 1 deletion(-)
Mota in commit fa6bd1b2:
redis-benchmark: default value size usage update.
1 file changed, 2 insertions(+), 2 deletions(-)
jybaek in commit ad0ddcf3:
Remove Duplicate Processing
1 file changed, 1 deletion(-)
Oran Agra (and also Buğra Gedik) in commit 8651e5d5:
Flush append only buffers before existing.
1 file changed, 2 insertions(+), 1 deletion(-)
antirez in commit f2b2897f:
Changelog: note that 4.0 CLUSTER NODES output changed.
1 file changed, 6 insertions(+)
Itamar Haber in commit 363be783:
Changes command stats iteration to being dict-based
1 file changed, 17 insertions(+), 10 deletions(-)
================================================================================
Redis 4.0.1 Released Mon Jul 24 15:51:31 CEST 2017
================================================================================
Upgrade urgency MODERATE: A few serious but non critical bugs in the modules
subsystem. A rare Redis Cluster crash fixed.
Many other minor fixes.
Hi everybody. This is the first patch level release of Redis 4.0, fixing the
obvious last minute issues discovered just after the 4.0.0 GA release, plus
a few other things that were no-brainers. The highlights here in terms
of bug fixing are:
1. Loading two or more modules exporting native data types resulted into the
inability to reload the RDB file.
2. Crash in modules when calling from Lua scripts module commands that would
block.
3. A Redis Cluster crash due to mis-handling of the "migrate-to" internal
flag.
4. Other smaller fixes not worth of a release per se, but nice to add here.
If you upgraded to 4.0 to use modules, definitely a required upgrade.
If you are using Redis Cluster, also a good idea to upgrade.
Otherwise... You can definitely wait for the next one :-)
Cheers,
Salvatore
Here is the commits in detail:
Jan-Erik Rediger in commit a8c2ef76:
Check that the whole first argument is a number
1 file changed, 3 insertions(+), 2 deletions(-)
WuYunlong in commit bfe5008b:
fix rewrite config: auto-aof-rewrite-min-size
1 file changed, 2 insertions(+), 2 deletions(-)
Chris Lamb in commit a6abc216:
Correct proceding -> proceeding typo.
1 file changed, 1 insertion(+), 1 deletion(-)
Byron Grobe in commit 1d901b02:
Fixed issue #1996 (Missing '-' in help message for redis-benchmark)
1 file changed, 1 insertion(+), 1 deletion(-)
Jan-Erik Rediger in commit 19e5e5ea:
Don't use extended Regexp Syntax
1 file changed, 6 insertions(+), 6 deletions(-)
Leon Chen in commit 62474219:
fix return wrong value of clusterDelNodeSlots
1 file changed, 4 insertions(+), 2 deletions(-)
Leon Chen in commit dc782ceb:
fix mismatch argument
1 file changed, 1 insertion(+), 1 deletion(-)
liangsijian in commit 07631ff1:
Fix lua ldb command log
1 file changed, 1 insertion(+)
antirez in commit 41e3617d:
Modules: don't crash when Lua calls a module blocking command.
1 file changed, 12 insertions(+), 2 deletions(-)
antirez in commit 10370b20:
Fix typo in unblockClientFromModule() top comment.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit b6c55a89:
Make representClusterNodeFlags() more robust.
1 file changed, 18 insertions(+), 17 deletions(-)
antirez in commit 9a4f3d72:
Fix two bugs in moduleTypeLookupModuleByID().
1 file changed, 7 insertions(+), 4 deletions(-)
antirez in commit 7302e186:
Allow certain modules APIs only defining REDISMODULE_EXPERIMENTAL_API.
2 files changed, 20 insertions(+), 12 deletions(-)
================================================================================
Redis 4.0.0 Released Fri Jul 14 13:04:44 CEST 2017
================================================================================
Upgrade urgency CRITICAL: 4.0.0 GA fixes many important bugs.
Dear Redis users,
this is the first stable version of Redis 4.0. There are a number
of bug fixes and improvements compared to the previous RC, mainly:
* Different replication fixes to PSYNC2, the new 4.0 replication engine.
* Modules thread safe contexts were introduced. They are an experimental API right now, but the API is considered to be stable and usable when needed.
* SLOWLOG now logs the offending client name and address. Note that this is a backward compatibility breakage in case old code assumes that the slowlog entry is composed of exactly three entries.
* The modules native data types RDB format changed.
* The AOF check utility is now able to deal with RDB preambles.
* GEORADIUS_RO and GEORADIUSBYMEMBER_RO variants, not supporting the STORE option, were added in order to allow read-only scaling of such queries.
* HSET is now variadic, and HMSET is considered deprecated (but will be supported for years to come). Please use HSET in new code.
* GEORADIUS huge radius (>= ~6000 km) corner cases fixed, certain elements near the edges were not returned.
* DEBUG DIGEST modules API added.
* HyperLogLog commands no longer crash on certain input (non HLL) strings.
* Fixed SLAVEOF inside MULTI/EXEC blocks.
* Many other minor bug fixes and improvements.
Note that 4.0 is probably one of the most extreme releases of Redis ever
made in terms of changes inside the internals: all the aggregated data types
no longer use Redis Objects structures but directly SDS objects, certain
deletion operations are now threaded, the replication engine was modified
in many ways. So please handle this release with care. A few patch-level
releases will follow in the next weeks and months fixing the important issues
discovered by the users.
You can read the new set of features below in this file, there are a lot
of improvements that can make a real difference in real world use cases.
Also note that Redis 4.0 is, as usually, almost a perfect superset of Redis
3.2, so it is very rare that compatibility with the past is broken in terms
of exported commands.
IMPORTANT: Redis Cluster users, please note that, as specified in the list
of incompatibilities, Redis 4.0 cluster bus protocol is not compatible with
Redis 3.2, so in order to upgrade, a mass reboot of the instances is needed
and rolling upgrades are not possible. This change was needed in order to
add compatibility for Containers/NAT, where the bus port at a fixed offset
was not an acceptable design, so we had to change many things, resulting
in the incompatible protocol.
Have fun with Redis 4.0!
Salvatore
antirez in commit c29852ff:
Modules: fix thread safe context DB selection.
1 file changed, 3 insertions(+)
antirez in commit b73f186a:
Modules documentation removed from source.
4 files changed, 2830 deletions(-)
antirez in commit 09d93ec9:
Markdown generation of Redis Modules API reference improved.
2 files changed, 83 insertions(+), 74 deletions(-)
antirez in commit 87aabb1a:
Fix replication of SLAVEOF inside transaction.
2 files changed, 19 insertions(+), 3 deletions(-)
antirez in commit 44f89d1d:
CLUSTER GETKEYSINSLOT: avoid overallocating.
1 file changed, 5 insertions(+)
antirez in commit 0df24b68:
Fix isHLLObjectOrReply() to handle integer encoded strings.
1 file changed, 1 insertion(+)
antirez in commit 884ceb69:
Clients blocked in modules: free argv/argc later.
2 files changed, 15 insertions(+), 3 deletions(-)
antirez in commit ccbdd762:
Event loop: call after sleep() only from top level.
2 files changed, 4 insertions(+), 2 deletions(-)
antirez in commit 10925e46:
redis-check-aof: tell users there is a --fix option.
1 file changed, 2 insertions(+), 1 deletion(-)
Guy Benoish in commit 99bb1c74:
Modules: Fix io->bytes calculation in RDB save
1 file changed, 55 insertions(+), 30 deletions(-)
antirez in commit cfdcd440:
AOF check utility: ability to check files with RDB preamble.
6 files changed, 61 insertions(+), 35 deletions(-)
sunweinan in commit 1cefb1c5:
minor fix in listJoin().
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit db791a1e:
Free IO context if any in RDB loading code.
1 file changed, 4 insertions(+)
antirez in commit 419dacfe:
Modules: DEBUG DIGEST interface.
5 files changed, 108 insertions(+), 1 deletion(-)
spinlock in commit 5d03b831:
update Makefile for test-sds
1 file changed, 1 insertion(+), 1 deletion(-)
spinlock in commit ed437b82:
Optimize addReplyBulkSds for better performance
1 file changed, 1 insertion(+), 2 deletions(-)
antirez in commit 4ebfe265:
Avoid closing invalid FDs to make Valgrind happier.
1 file changed, 5 insertions(+), 1 deletion(-)
antirez in commit b6cab88c:
Modules: no MULTI/EXEC for commands replicated from async contexts.
1 file changed, 5 insertions(+)
antirez in commit 5c5e8a50:
Add symmetrical assertion to track c->reply_buffer infinite growth.
1 file changed, 4 insertions(+)
Dvir Volk in commit c63a97f8:
fixed #4100
1 file changed, 1 insertion(+)
antirez in commit eeb90571:
Fix GEORADIUS edge case with huge radius.
2 files changed, 39 insertions(+), 20 deletions(-)
antirez in commit 670456a7:
redis-cli --latency: ability to run non interactively.
1 file changed, 39 insertions(+), 3 deletions(-)
antirez in commit 64db8044:
HMSET and MSET implementations unified. HSET now variadic.
2 files changed, 18 insertions(+), 22 deletions(-)
antirez in commit e43c890e:
Aesthetic changes to #4068 PR to conform to Redis coding standard.
1 file changed, 6 insertions(+), 7 deletions(-)
itamar in commit 3f3dc3b8:
Sets up fake client to select current db in RM_Call()
1 file changed, 1 insertion(+)
antirez in commit ba773724:
Fix abort typo in Lua debugger help screen.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit bdd6de96:
Added GEORADIUS(BYMEMBER)_RO variants for read-only operations.
3 files changed, 32 insertions(+), 11 deletions(-)
Suraj Narkhede in commit de391ff1:
Fix brpop command table entry and redirect blocked clients.
2 files changed, 3 insertions(+), 2 deletions(-)
antirez in commit 5af0fc0c:
RDB modules values serialization format version 2.
4 files changed, 127 insertions(+), 28 deletions(-)
antirez in commit 6516958e:
ARM: Fix stack trace generation on crash.
1 file changed, 5 insertions(+)
antirez in commit 3669f96e:
Issue #4027: unify comment and modify return value in freeMemoryIfNeeded().
2 files changed, 7 insertions(+), 7 deletions(-)
Suraj Narkhede in commit 896c4690:
Fix following issues in blocking commands: 1. brpop last key index, thus checking all keys for slots. 2. Memory leak in clusterRedirectBlockedClientIfNeeded. 3. Remove while loop in clusterRedirectBlockedClientIfNeeded.
1 file changed, 1 insertion(+)
Zachary Marquez in commit deeb795a:
Prevent expirations and evictions while paused
2 files changed, 10 insertions(+)
antirez in commit a6615423:
Upgrade 4.0 changelog with more backward incompatibilities.
1 file changed, 8 insertions(+)
xuzhou in commit 0b367871:
Optimize set command with ex/px when updating aof.
1 file changed, 3 insertions(+), 3 deletions(-)
antirez in commit 2ae733d9:
redis-benchmark: add -t hset target.
1 file changed, 7 insertions(+)
xuzhou in commit 63e1c9f2:
Fix set with ex/px option when propagated to aof
4 files changed, 36 insertions(+), 1 deletion(-)
minghang.zmh in commit 0231156f:
fix server.stat_net_output_bytes calc bug
1 file changed, 1 insertion(+), 1 deletion(-)
xuchengxuan in commit e99954e4:
Fixed comments of slowlog duration
1 file changed, 1 insertion(+), 1 deletion(-)
cbgbt in commit d048f972:
cli: Only print elapsed time on OUTPUT_STANDARD
1 file changed, 3 insertions(+), 1 deletion(-)
Aric Huang in commit b5f22939:
(fix) Update create-cluster README
1 file changed, 4 insertions(+), 4 deletions(-)
antirez in commit 0b7ba621:
SLOWLOG: log offending client address and name.
4 files changed, 27 insertions(+), 7 deletions(-)
Antonio Mallia in commit 1fbc90fe:
Removed duplicate 'sys/socket.h' include
1 file changed, 1 deletion(-)
Antonio Mallia in commit c7a6b711:
Fixed comment in clusterMsg version field
1 file changed, 1 insertion(+), 1 deletion(-)
Qu Chen in commit 73d358f7:
Implement getKeys procedure for georadius and georadiusbymember commands.
3 files changed, 41 insertions(+), 2 deletions(-)
antirez in commit c782d189:
Fix PERSIST expired key resuscitation issue #4048.
2 files changed, 4 insertions(+), 7 deletions(-)
antirez in commit cb548bf3:
More informative -MISCONF error message.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 8cd6a2bd:
Collect fork() timing info only if fork succeeded.
1 file changed, 4 insertions(+), 3 deletions(-)
antirez in commit a3941aa5:
redis-cli --bigkeys: show error when TYPE fails.
1 file changed, 7 insertions(+), 2 deletions(-)
antirez in commit 6b21cebd:
Modules TSC: use atomic var for server.unixtime.
3 files changed, 15 insertions(+), 5 deletions(-)
antirez in commit 54bd224f:
atomicvar.h: show used API in INFO. Add macro to force __sync builtin.
2 files changed, 13 insertions(+), 6 deletions(-)
antirez in commit a864d25c:
zmalloc.c: remove thread safe mode, it's the default way.
3 files changed, 3 insertions(+), 23 deletions(-)
antirez in commit b338f2b9:
Modules TSC: Add mutex for server.lruclock.
2 files changed, 2 insertions(+)
antirez in commit 7e9c658d:
Modules TSC: Improve inter-thread synchronization.
5 files changed, 75 insertions(+), 20 deletions(-)
antirez in commit e69af32f:
Simplify atomicvar.h usage by having the mutex name implicit.
3 files changed, 25 insertions(+), 27 deletions(-)
antirez in commit 26e57f17:
Lazyfree: fix lazyfreeGetPendingObjectsCount() race reading counter.
1 file changed, 3 insertions(+), 1 deletion(-)
antirez in commit 2acf003c:
Modules TSC: HELLO.KEYS reply format fixed.
1 file changed, 15 insertions(+), 13 deletions(-)
antirez in commit 12fd298f:
Modules TSC: put the client in the pending write list.
1 file changed, 13 insertions(+), 1 deletion(-)
antirez in commit 5b1afa4a:
adlist: fix final list count in listJoin().
1 file changed, 1 insertion(+)
antirez in commit 717b2eea:
adlist: fix listJoin() to handle empty lists.
1 file changed, 8 insertions(+), 2 deletions(-)
antirez in commit a839036a:
Modules: remove unused var in example module.
1 file changed, 2 insertions(+), 3 deletions(-)
antirez in commit eda5ee5e:
Modules TSC: HELLO.KEYS example draft finished.
1 file changed, 35 insertions(+), 6 deletions(-)
antirez in commit fb8734fe:
Module: fix RedisModule_Call() "l" specifier to create a raw string.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit c4b88495:
Modules TSC: Release the GIL for all the time we are blocked.
6 files changed, 100 insertions(+), 22 deletions(-)
antirez in commit fcd9a07d:
Modules TSC: Export symbols of the new API.
2 files changed, 12 insertions(+)
antirez in commit 8affa3e7:
Modules TSC: Handling of RM_Reply* functions.
3 files changed, 82 insertions(+), 14 deletions(-)
antirez in commit 31b1f3c1:
Modules TSC: Basic TS context creeation and handling.
1 file changed, 60 insertions(+), 1 deletion(-)
antirez in commit 74f3a843:
Modules TSC: GIL and cooperative multi tasking setup.
3 files changed, 31 insertions(+), 1 deletion(-)
antirez in commit 5021fda2:
Regression test for #3899 fixed.
1 file changed, 36 insertions(+), 19 deletions(-)
antirez in commit 166bdbda:
Regression test for PSYNC2 issue #3899 added.
2 files changed, 62 insertions(+)
antirez in commit b506eb74:
Check event loop creation return value. Fix #3951.
1 file changed, 6 insertions(+)
antirez in commit 80690562:
PSYNC2: fix master cleanup when caching it.
3 files changed, 20 insertions(+), 7 deletions(-)
antirez in commit 8c4b0f41:
Defrag: test currently disabled, too many false positives.
1 file changed, 40 insertions(+), 38 deletions(-)
================================================================================
Redis 4.0-RC3 Released Sat Apr 22 11:19:56 CEST 2017
================================================================================
Upgrade urgency HIGH: Many bugs fixed and many improvements operated, so who
is using 4.0 RC2 should upgrade if possible, or at least
should carefully read this release notes to understand if
it may be affected by some bug.
Redis 3.9.103 (4.0 RC3 for the friends) is finally out, and the list of commits
is pretty long, so here is a synopsis of all the major changes operated in this
release.
Major things:
* Finally the infamous leakage of keys with an expire, in slaves that are
configured as writable, is fixed. (Salvatore Sanfilippo)
* A serious MIGRATE issue forgetting to store the TTL of the key under
certain conditions is fixed. (reported by Jinbei Wang, fixed by Jan-Erik
Rediger).
* An in-depth investigation of the ziplist implementation was performed.
The final result was:
1. An in depth auditing (Salvatore Sanfilippo and Oran Agra).
2. The discovery of a bug and its fix (Salvatore Sanfilippo).
3. The creation of a new specification to replace ziplists with something
better, listpacks: https://gist.github.com/antirez/66ffab20190ece8a7485bd9accfbc175 (Yuval Inbar, Salvatore Sanfilippo, Oran Agra).
4. Refactoring and function to dump a ziplist for debugging purposes
(Salvatore Sanfilippo).
* New major feature: Memory de-fragmentation. This feature, contributed by
Oran Agra, allows Redis to perform "online defragmentation" of memory
if the Jemalloc allocator is used. There is some documentation in the
example `redis.conf` file. (Oran Agra)
* Support for ARM. (Salvatore Sanfilippo)
* Fix a very important "family of bugs" about PSYNC2, thanks to the help
of Kevin McGehee, Siran Yang and Oran Agra.
* Hash function moved to SipHash 1-2 variant. (Salvatore Sanfilippo)
* Redis Cluster failure detection improved in different ways, the most
important result is to exchange a lot less messages among nodes. (Salvatore
Sanfilippo)
All the rest:
* A bug in the modules API ziplist iterator was fixed. (Dvir Volk).
* The HyperLogLog implementation final cardinality approximation function
was improved to use the LogLog-Beta algorithm. (Harish Murthy and
Salvatore Sanfilippo).
* Edge case copy-on-write disaster fix (Oran Agra).
* Now the Redis ASCII art logo is shown only if logging to stdout and if the
stdout is a tty. (Salvatore Sanfilippo because of users request).
* A new GEO bug fixed (and there is another pending when huge radiuses are
used, where elements at the edge may be miss-reported). (Salvatore
Sanfilippo). ***IMPORTANT*** See the list of incompatibilities below
since the GEO API has some potentially backward incompatible change.
* ZADD crash on syntax error fixed. (Itamar Haber)
* Fixed a division by zero but in MEMORY DOCTOR. (Jan-Erik Rediger)
* More MIGRATE bugs fixed. (Salvatore Sanfilippo)
* Different file descriptors potential lakes fixed. (multiple authors)
* Support for Solaris improved. (Salvatore Sanfilippo)
* Improve memory reclaiming in freeMemoryIfNeeded(). (Oran Agra and
Salvatore Sanfilippo)
* Fixes multiple bugs in the test suite. (Salvatore Sanfilippo)
* Fix asynchronous commands in modules API. (Dvir Volk and Salvatore Sanfilippo)
* A new data structure, the radix tree (rax.c) was introduced into Redis in
order to fix a major Redis Cluster slowdown. (Salvatore Sanfilippo)
* Fix `lua-time-limit` config ignored in `redis.conf`. (Salvatore Sanfilippo)
* Jemalloc downgraded to an apparently safe version, given that recent
releases apparently hang under certain conditions. See Redis issue #3799.
For details and full credits, see the list of commits here. However note that
many information is inside the full commit message, while here only the first
line is shown.
antirez in commit 6bc6bd4c:
PSYNC2: discard pending transactions from cached master.
1 file changed, 3 insertions(+), 1 deletion(-)
antirez in commit a91cc5bc:
Fix PSYNC2 incomplete command bug as described in #3899.
3 files changed, 47 insertions(+), 8 deletions(-)
antirez in commit 278972ce:
Fix getKeysUsingCommandTable() in cluster mode.
1 file changed, 14 insertions(+), 1 deletion(-)
张文康 in commit 20285017:
update block->free after some diff data are written to the child process
1 file changed, 1 insertion(+)
Jan-Erik Rediger in commit 05ac217f:
Reorder to make dict-benchmark compile on Linux
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit 8d44c52a:
Fix #3848 by closing the descriptor on error.
1 file changed, 2 insertions(+), 1 deletion(-)
antirez in commit 5c107c62:
Clarify why we save ziplist elements in revserse order.
1 file changed, 13 insertions(+), 7 deletions(-)
spinlock in commit 22996414:
rdb: saving skiplist in reversed order to accelerate the deserialisation process
1 file changed, 8 insertions(+), 7 deletions(-)
antirez in commit d98ef35a:
Cluster: discard pong times in the future.
1 file changed, 8 insertions(+), 1 deletion(-)
antirez in commit e47c8e3f:
Test: fix, hopefully, false PSYNC failure like in issue #2715.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 1e659a04:
Cluster: always add PFAIL nodes at end of gossip section.
2 files changed, 71 insertions(+), 23 deletions(-)
antirez in commit 39d34487:
Cluster: fix gossip section ping/pong times encoding.
1 file changed, 4 insertions(+), 3 deletions(-)
antirez in commit 78148d0e:
Cluster: add clean-logs command to create-cluster script.
2 files changed, 9 insertions(+), 1 deletion(-)
antirez in commit a5c1c77e:
Cluster: decrease ping/pong traffic by trusting other nodes reports.
1 file changed, 13 insertions(+)
antirez in commit 51901396:
Cluster: collect more specific bus messages stats.
2 files changed, 82 insertions(+), 31 deletions(-)
antirez in commit f7b91b6c:
Add a top comment in crucial functions inside networking.c.
1 file changed, 23 insertions(+), 1 deletion(-)
antirez in commit 6e1489ae:
Set lua-time-limit default value at safe place.
2 files changed, 1 insertion(+), 1 deletion(-)
antirez in commit 5fd841c0:
Fix preprocessor if/else chain broken in order to fix #3927.
1 file changed, 3 insertions(+)
antirez in commit 185b361a:
Fix typo in feedReplicationBacklog() top comment.
1 file changed, 1 insertion(+), 1 deletion(-)
lorneli in commit b740fc1e:
Expire: Update comment of activeExpireCycle function
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 56cafcce:
Fix zmalloc_get_memory_size() ifdefs to actually use the else branch.
1 file changed, 2 deletions(-)
antirez in commit a5b66da8:
Make more obvious why there was issue #3843.
1 file changed, 3 insertions(+)
antirez in commit f60d6f09:
Fix modules blocking commands awake delay.
3 files changed, 42 insertions(+)
antirez in commit c56668c8:
Rax library updated.
3 files changed, 152 insertions(+), 265 deletions(-)
antirez in commit c4716d33:
Cluster: hash slots tracking using a radix tree.
9 files changed, 2115 insertions(+), 65 deletions(-)
vienna in commit a9fefbce:
fix #3847: add close socket before return ANET_ERR.
1 file changed, 3 insertions(+), 1 deletion(-)
Dvir Volk in commit 17250409:
fixed free of blocked client before refering to it
1 file changed, 1 insertion(+), 1 deletion(-)
Oran Agra in commit 8aced9e9:
add LFU policies to the test suite, just for coverage
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit 3aa656ab:
Use sha256 instead of sha1 to generate tarball hashes.
1 file changed, 2 insertions(+), 2 deletions(-)
Salvatore Sanfilippo in commit 42d6a6c3: