forked from pmem/pmem-redis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-RELEASENOTES
3673 lines (2807 loc) · 122 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.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:
Makefile: fix building with Solaris C compiler, 64 bit.
1 file changed, 7 insertions(+)
Salvatore Sanfilippo in commit e082d056:
Use ARM unaligned accesses ifdefs for SPARC as well.
3 files changed, 11 insertions(+), 2 deletions(-)
Salvatore Sanfilippo in commit 7269d547:
Fix BITPOS unaligned memory access.
1 file changed, 14 insertions(+), 7 deletions(-)
antirez in commit 15520588:
Solaris fixes about tail usage and atomic vars.
4 files changed, 7 insertions(+), 7 deletions(-)
antirez in commit 9faeed04:
Test: replication-psync, wait more to detect write load.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit b3440b35:
Test: fix conditional execution of HINCRBYFLOAT representation test.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 5a413303:
SipHash 2-4 -> SipHash 1-2.
1 file changed, 15 insertions(+), 14 deletions(-)
antirez in commit a8cbc3ec:
freeMemoryIfNeeded(): improve code and lazyfree handling.
1 file changed, 42 insertions(+), 19 deletions(-)
antirez in commit 857e6d56:
Use locale agnostic tolower() in dict.c hash function.
3 files changed, 27 insertions(+), 17 deletions(-)
antirez in commit 34387cea:
SipHash x86 optimizations.
1 file changed, 23 insertions(+), 2 deletions(-)
antirez in commit ba647598:
Use SipHash hash function to mitigate HashDos attempts.
12 files changed, 361 insertions(+), 82 deletions(-)
Salvatore Sanfilippo in commit 2ee19d98:
ARM: Avoid fast path for BITOP.
1 file changed, 5 insertions(+), 1 deletion(-)
Salvatore Sanfilippo in commit eb62cfea:
ARM: Use libc malloc by default.
1 file changed, 6 insertions(+), 3 deletions(-)
Salvatore Sanfilippo in commit 620e48b1:
ARM: Avoid memcpy() in MurmurHash64A() if we are using 64 bit ARM.
3 files changed, 5 insertions(+), 1 deletion(-)
Salvatore Sanfilippo in commit 980d8805:
ARM: Fix 64 bit unaligned access in MurmurHash64A().
2 files changed, 10 insertions(+)
John.Koepi in commit 522b10e4:
fix #2883, #2857 pipe fds leak when fork() failed on bg aof rw
1 file changed, 1 insertion(+)
antirez in commit 03f55722:
Don't leak file descriptor on syncWithMaster().
1 file changed, 2 insertions(+), 1 deletion(-)
antirez in commit 8d55aeb5:
Fix MIGRATE closing of cached socket on error.
1 file changed, 23 insertions(+), 6 deletions(-)
antirez in commit 7c22d768:
Fix ziplist fix...
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit 8327b813:
Ziplist: insertion bug under particular conditions fixed.
1 file changed, 9 insertions(+), 1 deletion(-)
antirez in commit 1688ccff:
ziplist: better comments, some refactoring.
1 file changed, 250 insertions(+), 100 deletions(-)
antirez in commit 36c1acc2:
Jemalloc updated to 4.4.0.
150 files changed, 17242 insertions(+), 6359 deletions(-)
Jan-Erik Rediger in commit 37b4c954:
Don't divide by zero
1 file changed, 1 insertion(+), 1 deletion(-)
miter in commit aee1ddca:
Change switch statment to if statment
1 file changed, 2 insertions(+), 4 deletions(-)
oranagra in commit af292b54:
fix rare assertion in DEBUG DIGEST
1 file changed, 1 insertion(+), 1 deletion(-)
Itamar Haber in commit c3c2aa3b:
Verify pairs are provided after subcommands
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 7c2153da:
Add panic() into redisassert.h.
1 file changed, 2 insertions(+)
antirez in commit dc83ddf0:
serverPanic(): allow printf() alike formatting.
2 files changed, 14 insertions(+), 4 deletions(-)
antirez in commit 3ef81eb3:
Ziplist: remove static from functions, they prevent good crash reports.
1 file changed, 14 insertions(+), 14 deletions(-)
Jan-Erik Rediger in commit 96f75faa:
Initialize help only in repl mode
1 file changed, 5 insertions(+), 5 deletions(-)
antirez in commit bcd51a6a:
Use const in modules types mem_usage method.
3 files changed, 4 insertions(+), 4 deletions(-)
antirez in commit 354ccf0c:
Add memory defragmenting capability in 4.0 release notes.
1 file changed, 3 insertions(+)
antirez in commit 57c81853:
Defrag: don't crash when a module value is encountered.
1 file changed, 3 insertions(+)
antirez in commit e36d5222:
MEMORY USAGE: support for modules data types.
3 files changed, 16 insertions(+), 5 deletions(-)
antirez in commit 82ec0fe6:
Defrag: document the feature in redis.conf.
1 file changed, 49 insertions(+), 6 deletions(-)
antirez in commit 19bf0249:
Defrag: not enabled by default. Error on CONFIG SET if not available.
2 files changed, 11 insertions(+), 1 deletion(-)
antirez in commit fa0d8b62:
Defrag: fix function name typo defarg -> defrag.
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit ebb9a7e7:
Defrag: do not crash on empty quicklist.
1 file changed, 3 insertions(+), 2 deletions(-)
antirez in commit da84b9c4:
Defrag: fix comments & code to conform to the Redis code base.
1 file changed, 84 insertions(+), 54 deletions(-)
antirez in commit a18f3cf3:
Defrag: activate it only if running modified version of Jemalloc.
4 files changed, 40 insertions(+), 26 deletions(-)
oranagra in commit 1ad48837:
active defrag improvements
4 files changed, 63 insertions(+), 44 deletions(-)
oranagra in commit 67def261:
active memory defragmentation
13 files changed, 755 insertions(+), 8 deletions(-)
antirez in commit b4f3c5a4:
deps/hiredis updated to latest version.
34 files changed, 2393 insertions(+), 817 deletions(-)
antirez in commit 6549c6cf:
Fix test "server is up" detection after logging changes.
2 files changed, 2 insertions(+), 1 deletion(-)
Alexander Zhukov in commit b87fd120:
Fix an article usage
1 file changed, 1 insertion(+), 1 deletion(-)
whatacold in commit bd845493:
fix the wrong description of intsetGet().
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 952e8706:
4.0 release notes updated with API incompatibility notice about GEO.
1 file changed, 12 insertions(+)
antirez in commit f3add069:
Geo: fuzzy test inconsistency report fixed to show all points.
1 file changed, 3 insertions(+), 2 deletions(-)
antirez in commit 056c81e4:
Geo: fix GEOHASH return value for consistency.
1 file changed, 3 insertions(+), 4 deletions(-)
antirez in commit d5036018:
Geo: fix edge case return values for uniformity.
1 file changed, 5 insertions(+), 6 deletions(-)
Justin Carvalho in commit 47b46253:
Fix missing brackets around encoding variable in ZIP_DECODE_LENGTH macro
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit a0e95118:
Remove first version of ASCII wave, later discarded.
1 file changed, 2 deletions(-)
antirez in commit 3334a409:
Only show Redis logo if logging to stdout / TTY.
4 files changed, 44 insertions(+), 11 deletions(-)
antirez in commit db53c230:
adjustOpenFilesLimit() comment made hopefully more clear.
1 file changed, 4 insertions(+), 1 deletion(-)
antirez in commit bc00ef45:
Hopefully improve code comments for issue #3616.
1 file changed, 8 insertions(+), 7 deletions(-)
itamar in commit 075a3381:
Corrects a couple of omissions in the modules docs
2 files changed, 3 insertions(+), 2 deletions(-)
andyli in commit 8d82b3b1:
Modify MIN->MAX
1 file changed, 1 insertion(+), 1 deletion(-)
oranagra in commit 69282df8:
when a slave loads an RDB, stop an AOFRW fork before flusing db and parsing rdb file, to avoid a CoW disaster.
1 file changed, 19 insertions(+), 13 deletions(-)
hylepo in commit 869dda84:
Update redis-benchmark.c
1 file changed, 1 insertion(+), 1 deletion(-)
oranagra in commit 7f870fad:
fix unsigned int overflow in adjustOpenFilesLimit
1 file changed, 3 insertions(+), 3 deletions(-)
antirez in commit 2e375d4f:
Switch PFCOUNT to LogLog-Beta algorithm.
4 files changed, 16 insertions(+), 57 deletions(-)
antirez in commit 735b928b:
Use llroundl() before converting loglog-beta output to integer.
1 file changed, 4 insertions(+), 4 deletions(-)
antirez in commit 6cae609e:
Fix HLL gnuplot graph generator script for new redis-rb versions.
1 file changed, 1 insertion(+), 1 deletion(-)
Harish Murthy in commit 4d475e0f:
LogLog-Beta Algorithm support within HLL Config option to use LogLog-Beta Algorithm for Cardinality
4 files changed, 57 insertions(+), 27 deletions(-)
Dvir Volk in commit 90d918bd:
fixed stop condition in RM_ZsetRangeNext and RM_ZsetRangePrev
1 file changed, 3 insertions(+), 3 deletions(-)
antirez in commit 3b19580a:
ziplist.c explanation of format improved a bit.
1 file changed, 18 insertions(+), 11 deletions(-)
antirez in commit 457c6878:
DEBUG: new "ziplist" subcommand added. Dumps a ziplist on stdout.
4 files changed, 35 insertions(+), 13 deletions(-)
antirez in commit 17cda261:
MIGRATE: Remove upfront ttl initialization.
1 file changed, 3 insertions(+), 4 deletions(-)
Jan-Erik Rediger in commit 9515648d:
Reset the ttl for additional keys
1 file changed, 1 insertion(+)
antirez in commit 1eec780e:
Writable slaves expires: unit test.
1 file changed, 12 insertions(+)
antirez in commit 9a8bc6d2:
Writable slaves expires: fix leak in key tracking.
2 files changed, 16 insertions(+), 2 deletions(-)
antirez in commit 746d70b0:
INFO: show num of slave-expires keys tracked.
3 files changed, 11 insertions(+), 2 deletions(-)
antirez in commit 1469c4ed:
Fix created->created typo in expire.c
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit c65dfb43:
Replication: fix the infamous key leakage of writable slaves + EXPIRE.
8 files changed, 161 insertions(+), 11 deletions(-)
Yossi Gottlieb in commit 80944aac:
Fix redis-cli rare crash.
1 file changed, 4 insertions(+)
================================================================================
Redis 4.0.0-RC2 Released Tue Dec 06 09:25:35 CET 2016
================================================================================
Upgrade urgency LOW: This release mainly fixes a rare GEO API bug and a crash
related to the modules subsystem.
Redis 4.0.0-RC2 (version number 3.9.102) just fixes two bugs:
1. GEORADIUS could fail reporting items with very big radius lengths because
of a bug in the bounding box computation function. This was fixed and tests
with large radius sizes were added.
2. There was a crash in the modules subsystem that was not merged into RC1 for
an error, while it was already fixed into the "unstable" branch.
The list of commits follows:
wangshaonan in commit 77241e8:
Add '\n' to MEMORY DOCTOR command output message when num_reports is 0 or empty is 1
1 file changed, 2 insertions(+), 2 deletions(-)
Chris Lamb in commit 0ee6a23:
src/rdb.c: Correct "whenver" -> "whenever" typo.
1 file changed, 1 insertion(+), 1 deletion(-)
Yossi Gottlieb in commit 2d0d2c8:
Fix typo in RedisModuleTypeMethods declaration.
1 file changed, 1 insertion(+), 1 deletion(-)
Dvir Volk in commit 0fb9f34:
fix memory corruption on RM_FreeCallReply
1 file changed, 3 insertions(+), 1 deletion(-)
antirez in commit 41994f2:
Geo: improve fuzz test.
1 file changed, 11 insertions(+), 3 deletions(-)
antirez in commit ef9b4cf:
Geo: fix computation of bounding box.
2 files changed, 33 insertions(+), 44 deletions(-)
================================================================================
Redis 4.0.0-RC1 Released Fri Dec 2 10:40:01 CEST 2016
================================================================================
Redis 4.0.0-RC1 (version number 3.9.101) is the first release candidate of
Redis 4.0. It is not a production quality release but all the major features
received some testing at this point, the release in feature freeze excluding
things that are considered in the middle ground between fixes and improvements.
Redis 4.0 is not called 3.4 because it is a major release that adds a number
of important and non trivial features. Many core functionalities of Redis were
seriously reworked. In the next release candidates, with your help, we'll gain
informations about the stability level of this release and will produce a new
RC every 2-4 weeks. When the entity and frequency of bug reports will slow down
under a certain level, Redis 4.0 final will be released.
As usually, certain changes to Cluster and Sentinel may not follow the Redis
release cycle and could be incorporated into Redis 4.0 at RC stage or even
after the final version, every time the changes are considered to benefit
the user base enough to be worth incorporating them ASAP without waiting
for Redis 4.2.
So, what's new in Redis 4.0?
Major features
---
* Redis modules system. Redis now allows developers to write modules that can extend the Redis functionalities and implement new data types. The module API implements a complete abstraction layer that separates the Redis core from the module implementation, allowing the same module to be loaded by different versions of Redis without modifications. See the modules documentation here for more info: https://github.com/antirez/redis/blob/unstable/src/modules/INTRO.md
* Partial Replication (PSYNC) version 2. The replication protocol was enhanced (in a backward compatible way, so that 4.0 can still act as a slave of older instances) in order to be able to partially resynchronize slaves and masters in conditions where it was impossible in the past: after a master switch because of a failover and when a slave instance is restared. Even masters turned into slaves will usually be able to partially resynchronize with the new master, if the new master was a former slave of the old master instance. The way the replication work for chained slaves (sub-slaves) is now very different, and each slave receives the same replication stream generated by the top-level master.
* Cache eviction improvements. Redis 4.0 implements LFU (Least Frequently Used) as a new eviction algorithm, and improves the functionality, performances and precision of the existing algorithms. This blog post contains info about the changes: http://antirez.com/news/109
* Lazy freeing of keys. Redis is now able to delete keys in the background in a different thread without blocking the server. The new `UNLINK` command is the same as `DEL` but working in a non blocking way. Similarly an `ASYNC` option was added to `FLUSHALL` and `FLUSHDB` in order to let the entire dataset or a single database to be freed asynchronously.
* Mixed RDB-AOF format. If enabled the new format is used when rewriting the AOF file: the rewrite uses the more compact and faster to generate RDB format, and an AOF stream is appended to the file. This allows faster rewrites and reloads when using the AOF persistence.
* A new MEMORY command, able to perform memory analysis of different kinds: troubleshooting of memory issues (with MEMORY DOCTOR, similar to LATENCY DOCTOR), reporting of the amount of memory used by a single key, more in-depth reporting of Redis memory usage compared to what the INFO command offers.
* Redis Cluster support for NAT / Docker. There are new functionalities in order to force cluster instances to announce specific sets of IP address, client and bus ports, to the rest of the cluster, regardless of the auto detected IP. This required a bus protocol change that will force users to mass-restart all the nodes of a Redis 3.2 installation in order to upgrade to 4.0.
* Redis uses now less memory in order to store the same amount of data. The gain depends a lot on the kind of dataset stored.
* Redis is now able to defragment the used memory and reclaim space incrementally
while running. See the example `redis.conf` for more information.
Smaller features
---
* Improvements to the RDB format to support 64 bit lengths, binary sorted set scores, and more. The RDB file check utility now uses the same code base of the one used by Redis itself in order to load the RDB file in memory.
* SWAPDB command: ability to completely and immediately (no latency) replace two Redis databases.
* Improvements to `dict.c`, the Redis hash table implementation.
* Security improvements mapping POST and Host: commands to QUIT in order to prevent cross protocol scripting attacks.
* RPUSHX and LPUSHX now accept a variable number of elements.
* Reporting of additional memory used by copy on write in the INFO output.
* Serious refactoring of many core parts of Redis.
List of commits
---
antirez in commit 434e6b2:
PSYNC2: Do not accept WAIT in slave instances.
1 file changed, 5 insertions(+)
antirez in commit 71e8d15:
Modules: change type registration API to use a struct of methods.
4 files changed, 65 insertions(+), 10 deletions(-)
antirez in commit ce1f9cf:
PSYNC2 test: check ability to resync after restart.
1 file changed, 35 insertions(+), 1 deletion(-)
antirez in commit 93c5198:
PSYNC2 test: 20 seconds are enough...
1 file changed, 5 insertions(+), 1 deletion(-)
antirez in commit f6e42f0:
PSYNC2 test: test added to the default tests.
1 file changed, 1 insertion(+)
antirez in commit 6eb720f:
PSYNC2: Minor memory leak reading -NOMASTERLINK master reply fixed.
1 file changed, 1 insertion(+)
antirez in commit c8f0690:
PSYNC2 test: modify the test for production.
1 file changed, 33 insertions(+), 17 deletions(-)
antirez in commit eab865a:
PSYNC2: stop sending newlines to sub-slaves when master is down.
3 files changed, 6 insertions(+), 30 deletions(-)
antirez in commit 16559a0:
PSYNC2: Test (WIP).
1 file changed, 127 insertions(+)
antirez in commit 790310d:
Better protocol errors logging.
1 file changed, 29 insertions(+), 10 deletions(-)
antirez in commit e09e31b:
PSYNC2: on transient error jump to error, not write_error.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 1f55170:
Modules: fix client blocking calls access to invalid struct field.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 5b7d42f:
PSYNC2: bugfixing pre release.
2 files changed, 39 insertions(+), 11 deletions(-)