-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-RELEASENOTES
2232 lines (1660 loc) · 91.3 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 3.2 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 3.2.13 Released Mon Mar 18 17:24:10 CEST 2019
================================================================================
Ciritcal fixes backported from Redis 5.
================================================================================
Redis 3.2.12 Released Wed Jun 13 12:43:01 CEST 2018
================================================================================
Upgrade urgency CRITICAL:
* Multilple security issues fixed.
* Backport of an older AOF fsync=always fix. Check 4.x release notes.
* Backport of a *SCAN bug. Sometimes elements could be missing from the scan.
* Other minor things.
================================================================================
Redis 3.2.11 Released Thu Sep 21 15:47:53 CEST 2017
================================================================================
Upgrade urgency HIGH: Potentially critical bugs fixed.
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.
Oran Agra (and also Buğra Gedik) in commit 8651e5d5:
Flush append only buffers before existing.
1 file changed, 2 insertions(+), 1 deletion(-)
================================================================================
Redis 3.2.10 Released Fri Jul 28 17:49:07 CEST 2017
================================================================================
Upgrade urgency MODERATE: This release contains a number of fixes that are not
critical in the general case, but quite important
in certain use cases. Upgrading is suggested but not
mandatory.
Dear Redis users,
while 4.0.1 is already out, this is a maintenance release of Redis 3.2.
It fixes several bugs, the most interesting ones are the following:
1. INFO server.stat_net_output_bytes field was computed in a wrong way, now
the output is correct.
2. SET with EX/PX options are now propagated correctly in the AOF, using
the absolute times.
3. CLIENT PAUSE was fixed to prevent eviction of keys, so that master and
slave continue to be consistent for the time the pause is active.
4. GEORADIUS(BYMEMBER)_RO variants for read-only operations added.
5. HyperLogLog sanity detection fixed in an edge case.
6. Redis Cluster crash due to mis-handling of hidden node flags fixed.
If you think you may be affected by the above problems, upgrading is a
good idea.
Have a nice day,
Salvatore
Full history of commits in this release:
Jan-Erik Rediger in commit bf508753:
Check that the whole first argument is a number
1 file changed, 3 insertions(+), 2 deletions(-)
WuYunlong in commit 8774228c:
fix rewrite config: auto-aof-rewrite-min-size
1 file changed, 2 insertions(+), 2 deletions(-)
Byron Grobe in commit ab900303:
Fixed issue #1996 (Missing '-' in help message for redis-benchmark)
1 file changed, 1 insertion(+), 1 deletion(-)
Jan-Erik Rediger in commit 7fcca9ba:
Don't use extended Regexp Syntax
1 file changed, 6 insertions(+), 6 deletions(-)
Leon Chen in commit 41963fe6:
fix return wrong value of clusterDelNodeSlots
1 file changed, 4 insertions(+), 2 deletions(-)
Leon Chen in commit 97d50344:
fix mismatch argument
1 file changed, 1 insertion(+), 1 deletion(-)
liangsijian in commit e3984980:
Fix lua ldb command log
1 file changed, 1 insertion(+)
antirez in commit 84a4f202:
Make representClusterNodeFlags() more robust.
1 file changed, 17 insertions(+), 16 deletions(-)
antirez in commit 5aa25250:
Fix isHLLObjectOrReply() to handle integer encoded strings.
1 file changed, 1 insertion(+)
antirez in commit 7018d27d:
Fix abort typo in Lua debugger help screen.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit d557144e:
Added GEORADIUS(BYMEMBER)_RO variants for read-only operations.
3 files changed, 32 insertions(+), 11 deletions(-)
Suraj Narkhede in commit a309388d:
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(+)
Suraj Narkhede in commit 55442262:
Fix brpop command table entry and redirect blocked clients.
2 files changed, 3 insertions(+), 2 deletions(-)
antirez in commit e3641c8d:
Fix PERSIST expired key resuscitation issue #4048.
1 file changed, 4 insertions(+), 7 deletions(-)
Antonio Mallia in commit 9ce105ad:
Removed duplicate 'sys/socket.h' include
1 file changed, 1 deletion(-)
Zachary Marquez in commit e084a394:
Prevent expirations and evictions while paused
1 file changed, 10 insertions(+)
antirez in commit 61c78a52:
Collect fork() timing info only if fork succeeded.
1 file changed, 4 insertions(+), 3 deletions(-)
antirez in commit d067e334:
Aesthetic changes to #4068 PR to conform to Redis coding standard.
1 file changed, 6 insertions(+), 7 deletions(-)
xuzhou in commit 2b0f03e4:
Optimize set command with ex/px when updating aof.
1 file changed, 3 insertions(+), 3 deletions(-)
antirez in commit ad949f23:
redis-benchmark: add -t hset target.
1 file changed, 7 insertions(+)
xuzhou in commit 351663bd:
Fix set with ex/px option when propagated to aof
4 files changed, 36 insertions(+), 1 deletion(-)
minghang.zmh in commit d70ac1d1:
fix server.stat_net_output_bytes calc bug
1 file changed, 1 insertion(+), 1 deletion(-)
xuchengxuan in commit 8da9a167:
Fixed comments of slowlog duration
1 file changed, 1 insertion(+), 1 deletion(-)
cbgbt in commit 13546adc:
cli: Only print elapsed time on OUTPUT_STANDARD
1 file changed, 3 insertions(+), 1 deletion(-)
Aric Huang in commit 373facf8:
(fix) Update create-cluster README
1 file changed, 4 insertions(+), 4 deletions(-)
Salvatore Sanfilippo in commit 29e3ff9b:
Merge pull request #3926 from QuChen88/3.2
================================================================================
Redis 3.2.9 Released Mon May 17 17:35:38 CEST 2017
================================================================================
Upgrade urgency LOW: A few rarely harmful bugs were fixed.
This release just fixes bugs that are unlikely to cause serious problems
so there is no need to update ASAP. Please, see the list of commits
for the details on the bugs fixed and credits:
antirez in commit 3b46cf97:
redis-cli --bigkeys: show error when TYPE fails.
1 file changed, 7 insertions(+), 2 deletions(-)
antirez in commit f59b4b93:
Fix preprocessor if/else chain broken in order to fix #3927.
1 file changed, 3 insertions(+)
antirez in commit dd80fedf:
Fix zmalloc_get_memory_size() ifdefs to actually use the else branch.
1 file changed, 2 deletions(-)
antirez in commit 697d3abe:
Set lua-time-limit default value at safe place.
2 files changed, 1 insertion(+), 1 deletion(-)
antirez in commit c9c04b11:
Fix #3848 by closing the descriptor on error.
1 file changed, 2 insertions(+), 1 deletion(-)
张文康 in commit d3b49924:
update block->free after some diff data are written to the child process
1 file changed, 1 insertion(+)
antirez in commit 6a33952b:
Test: fix, hopefully, false PSYNC failure like in issue #2715.
1 file changed, 1 insertion(+), 1 deletion(-)
John.Koepi in commit b83f9fea:
fix #2883, #2857 pipe fds leak when fork() failed on bg aof rw
1 file changed, 1 insertion(+)
antirez in commit 10dbb5cd:
Don't leak file descriptor on syncWithMaster().
1 file changed, 2 insertions(+), 1 deletion(-)
================================================================================
Redis 3.2.8 Released Sun Feb 12 16:11:18 CET 2017
================================================================================
Upgrade urgency CRITICAL: This release reverts back the Jemalloc upgrade
that is believed to potentially cause a server
deadlock. A MIGRATE crash is also fixed.
Two important bug fixes, the first of one is critical:
1. Apparently Jemalloc 4.4.0 may contain a deadlock under particular
conditions. See https://github.com/antirez/redis/issues/3799.
We reverted back to the previously used Jemalloc versions and plan
to upgrade Jemalloc again after having more info about the
cause of the bug.
2. MIGRATE could crash the server after a socket error. See for reference:
https://github.com/antirez/redis/issues/3796.
List of commits:
antirez in commit 7178cac:
Revert "Jemalloc updated to 4.4.0."
150 files changed, 6330 insertions(+), 17245 deletions(-)
antirez in commit 33fad43:
Fix MIGRATE closing of cached socket on error.
1 file changed, 23 insertions(+), 6 deletions(-)
================================================================================
Redis 3.2.7 Released Tue Jan 31 16:21:41 CET 2017
================================================================================
Upgrade urgency HIGH: This release fixes important security and correctness
issues. It is especially important to upgrade for Redis
Cluster users and for users running Redis in their laptop
since a cross-scripting attack is fixed in this release.
Main bugs fixes and improvements in this release:
1. MIGRATE could incorrectly move keys between Redis Cluster nodes by turning
keys with an expire set into persisting keys. This bug was introduced with
the multiple-keys migration recently. It is now fixed. Only applies to
Redis Cluster users that use the resharding features of Redis Cluster.
2. As Redis 4.0 beta and the unstable branch already did (for some months at
this point), Redis 3.2.7 also aliases the Host: and POST commands to QUIT
avoiding to process the remaining pipeline if there are pending commands.
This is a security protection against a "Cross Scripting" attack, that
usually involves trying to feed Redis with HTTP in order to execute commands.
Example: a developer is running a local copy of Redis for development
purposes. She also runs a web browser in the same computer. The web browser
could send an HTTP request to http://127.0.0.1:6379 in order to access the
Redis instance, since a specially crafted HTTP requesta may also be partially
valid Redis protocol. However if POST and Host: break the connection, this
problem should be avoided. IMPORTANT: It is important to realize that it
is not impossible that another way will be found to talk with a localhost
Redis using a Cross Protocol attack not involving sending POST or Host: so
this is only a layer of protection but not a definitive fix for this class
of issues.
3. A ziplist bug that could cause data corruption, could crash the server and
MAY ALSO HAVE SECURITY IMPLICATIONS was fixed. The bug looks complex to
exploit, but attacks always get worse, never better (cit). The bug is very
very hard to catch in practice, it required manual analysis of the ziplist
code in order to be found. However it is also possible that rarely it
happened in the wild. Upgrading is required if you use LINSERT and other
in-the-middle list manipulation commands.
4. We upgraded to Jemalloc 4.4.0 since the version we used to ship with Redis
was an early 4.0 release of Jemalloc. This version may have several
improvements including the ability to better reclaim/use the memory of
system.
The following is the list of commits:
antirez in commit 3876d98:
Ziplist: insertion bug under particular conditions fixed.
1 file changed, 9 insertions(+), 1 deletion(-)
antirez in commit 153f2f0:
Jemalloc updated to 4.4.0.
150 files changed, 17271 insertions(+), 6356 deletions(-)
miter in commit ca532c9:
Change switch statment to if statment
1 file changed, 2 insertions(+), 4 deletions(-)
oranagra in commit a735035:
fix rare assertion in DEBUG DIGEST
1 file changed, 1 insertion(+), 1 deletion(-)
Itamar Haber in commit b917e3f:
Verify pairs are provided after subcommands
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 1177cf6:
Avoid geo.c warning in initialization.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 874804d:
Security: Cross Protocol Scripting protection.
3 files changed, 27 insertions(+), 2 deletions(-)
antirez in commit 273cd7f:
Ziplist: remove static from functions, they prevent good crash reports.
1 file changed, 14 insertions(+), 14 deletions(-)
Jan-Erik Rediger in commit 389b9f5:
Initialize help only in repl mode
1 file changed, 5 insertions(+), 5 deletions(-)
Yossi Gottlieb in commit 1370a88:
Fix redis-cli rare crash.
1 file changed, 4 insertions(+)
antirez in commit 68aab8e:
MIGRATE: Remove upfront ttl initialization.
1 file changed, 3 insertions(+), 4 deletions(-)
Jan-Erik Rediger in commit 788e892:
Reset the ttl for additional keys
1 file changed, 1 insertion(+)
================================================================================
Redis 3.2.6 Released Tue Dec 06 09:33:29 CET 2016
================================================================================
Upgrade urgency MODERATE: GEORADIUS, BITFIELD and Redis Cluster minor fixes.
This release mainly fixes three bugs:
1. A bug with BITFIELD that may cause the bitmap corruption when setting offsets
larger than the current string size.
2. A GEORADIUS bug that may happen when using very large radius lengths, in
the range of 10000km or alike, due to wrong bounding box calculation.
3. A bug with Redis Cluster which crashes when reading a nodes configuration
file with zero bytes at the end, which sometimes happens with certain ext4
configurations after a system crash.
The following is the list of commits:
antirez in commit f20f3ea:
Geo: improve fuzz test.
1 file changed, 11 insertions(+), 3 deletions(-)
antirez in commit 8c22086:
Geo: fix computation of bounding box.
2 files changed, 33 insertions(+), 27 deletions(-)
antirez in commit 92958df:
Cluster: handle zero bytes at the end of nodes.conf.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 0ee28ae:
Test: regression test for #3564 added.
1 file changed, 9 insertions(+)
sunhe in commit 289fadb:
bitops.c/bitfieldCommand: update higest_write_offset with check
1 file changed, 3 insertions(+), 2 deletions(-)
jybaek in commit f4f7d2c:
Add missing fclose()
1 file changed, 1 insertion(+)
================================================================================
Redis 3.2.5 Released Wed Oct 26 09:16:40 CEST 2016
================================================================================
Upgrade urgency LOW: This release only fixes a compilation issue due to the
missing -ldl at linking time.
zach shipko in commit 4736407:
BSDs don't have -ldl
1 file changed, 15 insertions(+), 5 deletions(-)
antirez in commit 9ada818:
Fix modules compilation when libc malloc is used.
1 file changed, 2 insertions(+), 2 deletions(-)
================================================================================
Redis 3.2.4 Released Mon Sep 26 08:58:21 CEST 2016
================================================================================
Upgrade urgency CRITICAL: Redis 3.2 and unstable contained a security
vulnerability fixed by this release.
Hello Redis Wizards of the Memory Stores Empire,
this is a Redis critical release in order to fix a security issue
which is documented clearly here:
https://github.com/antirez/redis/commit/6d9f8e2462fc2c426d48c941edeb78e5df7d2977
Thanks to Cory Duplantis of Cisco Talos for reporting the issue.
IMPACT:
The gist is that using CONFIG SET calls (or by manipulating redis.conf)
an attacker is able to compromise certain fields of the "server" global
structure, including the aof filename pointer, that could be made pointing
to something else. In turn the AOF name is used in different contexts such
as logging, rename(2) and open(2) syscalls, leading to potential problems.
Please note that since having access to CONFIG SET also means to be able
to change the AOF filename (and many other things) directly, this issue
actual real world impact is quite small, so I would not panik: if you
have CONFIG SET level of access, you can do more and more easily.
AFFECTED VERSIONS:
All Redis 3.2.x versions are affected.
OTHER CHANGES IN THIS RELEASE:
This release also includes other things:
* TCP binding bug fixed when only certain addresses were available for
a given port.
* A much better crash report that includes part of the Redis binary:
this will allow to fix bugs even when we just have a crash log and
no other help from the original poster oft the issue.
* A fix for Redis Cluster redis-trib displaying of info after creating
a new cluster.
Please check the following list of commits for credits about who did what.
Thanks to all the contributors and a special thank to Oran Agra for the
help in this release.
List of commits:
antirez in commit 0539634:
Security: CONFIG SET client-output-buffer-limit overflow fixed.
1 file changed, 5 insertions(+), 3 deletions(-)
antirez in commit c01abcd:
fix the fix for the TCP binding.
1 file changed, 15 insertions(+), 10 deletions(-)
oranagra in commit a6d0698:
fix tcp binding when IPv6 is unsupported
2 files changed, 14 insertions(+), 10 deletions(-)
antirez in commit 22b6c28:
debug.c: no need to define _GNU_SOURCE, is defined in fmacros.h.
1 file changed, 1 deletion(-)
antirez in commit 9e9d398:
crash log - improve code dump with more info and called symbols.
1 file changed, 59 insertions(+), 20 deletions(-)
oranagra in commit 3745c5d:
crash log - add hex dump of function code
1 file changed, 22 insertions(+)
antirez in commit c1cc07b:
Sentinel example config: warn about protected mode.
1 file changed, 16 insertions(+), 1 deletion(-)
rojingeorge in commit 011dc9f:
Display the nodes summary once the cluster is established using redis-trib.rb
1 file changed, 5 insertions(+)
Guo Xiao in commit f4e3a94:
Use the standard predefined identifier __func__ (since C99)
1 file changed, 1 insertion(+), 1 deletion(-)
================================================================================
Redis 3.2.3 Released Tue Aug 02 10:55:24 CEST 2016
================================================================================
Upgrade urgency MODERATE: Fix replication delay and redis-cli security issue.
Hello,
this is a minor release of Redis addressing two bugs:
1. There was an inverted if statement logic problem in replication.c causing
a replication delay. This is not an actual problem since things work
as expected, but worth to fix ASAP anyway.
2. Redis-cli created the history file with insecure permissions, allowing
reding from the file. This was actually a bug in linenoise which is
now fixed. The applied fix is from Chris Lamb.
List of commits:
Qu Chen in commit e67ad1d:
Fix a bug to delay bgsave while AOF rewrite in progress for replication
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 7153668:
Update linenoise to fix insecure redis-cli history file creation.
1 file changed, 6 insertions(+), 1 deletion(-)
================================================================================
Redis 3.2.2 Released Thu Jul 28 14:14:54 CEST 2016
================================================================================
Upgrade urgency MODERATE: A Redis server and a Sentinel crash are now fixed.
GEORADIUS errors in reported entries are fixed.
Hi all! Redis 3.2.2 is finally out with non trivial bugfixes and a few new
features. Let's start from the bugs:
1. There was a bug in the List type implementation, able to cause the
crash of the server under certain (non trivial to replicate) circumstances
when the LSET command was used. Now the bug is fixed and a new stress tester
that was able to easily trigger the bug was added to the test suite.
2. Redis Sentinel, when monitoring multiple masters, could crash after
a Sentinel address update event.
3. Redis Sentinel now checks slaves INFO state more often when disconnected.
This is not really a bug fix, but may allow to more easily detect that
a slave is able to fail over its master reducing certain delays.
4. It was possible, under a variety of conditions, that the AOF and RDB children
process could spawn at the same time. This is known to trash disk I/O,
AOF performances, and to ultimately create latency in the Redis server.
Normally Redis avoids to have the two writing children at the same time, but
there were edge cases discovered by Oran Agra (that also co-authored the
fix with me) where the double-fork could happen. In order to fix this bug
non trivial changes to the replication code were operated, however it was
important to back port this fix into 3.2.2 because the bug could lead to
bad latency experiences in certain cases.
5. Many GEORADIUS bugs are now fixed \o/. This started as a failing CI
test. I grepped for more clues and there were a number of random failures
in the points reported by GEORADIUS. The errors were found to be related
to three different bugs (one of these was a bug in the test itself).
It's not a critical bug: the effect is to, sometimes, don't report objects
that are near the radius, but only with specific sets of coordinates
and radius settings. However now the issues are fixed and the error
vectors were added as regression tests.
And now the good news (not that bug fixes are not good...), that is, the
new features!
1. Now slaves support the slave-announce-ip and slave-announce-port options.
Using these features a slave can be reported by the master `INFO` output
and `ROLE` command as having arbitrary IP and port. This allows to have
Sentinel deployments when working with containers or NAT-ed environments
more easily.
2. The RDB check utlity is now part of Redis and uses the same RDB code that
Redis uses in order to load the dataset in memory, so a given version
of Redis is always able to check the RDB it produced... without another
external check tool which is supposed to be taken in sync with the
rdb.c implementation. This in turn also means that the new RDB checking
is able to spot more complex bugs, since it really loads the dataset
instead of just skipping bytes.
About the redis-check-dump utility, now it is also able to show certain
information about the RDB file, like the version that produced it, when
it was produced, and so forth. Example:
./redis-check-rdb dump.rdb
[offset 0] Checking RDB file dump.rdb
[offset 32] AUX FIELD redis-ver = '3.2.2'
[offset 46] AUX FIELD redis-bits = '64'
[offset 58] AUX FIELD ctime = '1469710178'
[offset 73] AUX FIELD used-mem = '1186528'
The ability to check how much memory was used by the instance that produced
the RDB file can be especially useful.
For credits and the full change log, see the list of commits below, that was
modified in order to be a bit less verbose compared to the last releases.
Enjoy!
Salvatore
antirez in commit 0a45fbc:
Ability of slave to announce arbitrary ip/port to master.
6 files changed, 129 insertions(+), 17 deletions(-)
antirez in commit c3982c0:
redis-benchmark: new option to show server errors on stdout.
1 file changed, 17 insertions(+), 1 deletion(-)
antirez in commit fdafe23:
Multiple GEORADIUS bugs fixed.
6 files changed, 177 insertions(+), 21 deletions(-)
antirez in commit a1bfe22:
Replication: when possible start RDB saving ASAP.
1 file changed, 8 insertions(+), 2 deletions(-)
antirez in commit 7ca69af:
Sentinel: new test unit 07 that tests master down conditions.
1 file changed, 68 insertions(+)
antirez in commit 5b5e652:
Sentinel: check Slave INFO state more often when disconnected.
2 files changed, 10 insertions(+), 3 deletions(-)
antirez in commit 21cffc2:
Avoid simultaneous RDB and AOF child process.
4 files changed, 51 insertions(+), 8 deletions(-)
antirez in commit 017378e:
Replication: start BGSAVE for replication always in replicationCron().
1 file changed, 15 insertions(+), 12 deletions(-)
antirez in commit 940be9a:
Regression test for issue #3333.
1 file changed, 6 insertions(+)
antirez in commit 21736b4:
getLongLongFromObject: use string2ll() instead of strict_strtoll().
1 file changed, 1 insertion(+), 6 deletions(-)
antirez in commit 0b748e9:
redis-cli: check SELECT reply type just in state updated.
1 file changed, 1 insertion(+), 1 deletion(-)
sskorgal in commit 1158386:
Fix for redis_cli printing default DB when select command fails.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 026f9fc:
Sentinel: fix cross-master Sentinel address update.
1 file changed, 9 insertions(+), 2 deletions(-)
antirez in commit 11523b3:
CONFIG GET is now no longer case sensitive.
1 file changed, 12 insertions(+), 12 deletions(-)
antirez in commit f5a7f4f:
Fix test for new RDB checksum failure message.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 4c6ff74:
Make tcp-keepalive default to 300 in internal conf.
1 file changed, 1 insertion(+), 1 deletion(-)
antirez in commit 27dbec2:
In Redis RDB check: more details in error reportings.
1 file changed, 24 insertions(+), 13 deletions(-)
antirez in commit 41f3004:
In Redis RDB check: log decompression errors.
2 files changed, 23 insertions(+), 2 deletions(-)
antirez in commit 278fe3e:
In Redis RDB check: log object type on error.
1 file changed, 27 insertions(+), 2 deletions(-)
antirez in commit a117dfa:
Added a trivial program to randomly corrupt RDB files in /utils.
1 file changed, 44 insertions(+)
antirez in commit f5110c3:
In Redis RDB check: minor output message changes.
1 file changed, 4 insertions(+), 1 deletion(-)
antirez in commit 35b18bf:
In Redis RDB check: better error reporting.
4 files changed, 71 insertions(+), 14 deletions(-)
antirez in commit f578f08:
In Redis RDB check: initial POC.
2 files changed, 189 insertions(+), 647 deletions(-)
tielei in commit 7f1e1ca:
A string with 21 chars is not representable as a 64-bit integer.
1 file changed, 2 insertions(+), 2 deletions(-)
antirez in commit 7a3a595:
Test: new randomized stress tester for #3343 alike bugs.
1 file changed, 27 insertions(+), 2 deletions(-)
antirez in commit c75ca10:
Stress tester WIP.
1 file changed, 3 insertions(+)
antirez in commit 2c3fcf8:
Regression test for issue #3343 exact min crash sequence.
1 file changed, 16 insertions(+)
antirez in commit 7041967:
Fix quicklistReplaceAtIndex() by updating the quicklist ziplist size.
1 file changed, 1 insertion(+)
================================================================================
Redis 3.2.1 Released Fri Jun 17 15:01:56 CEST 2016
================================================================================
Upgrade urgency HIGH: Critical fix to Redis Sentinel, due to 3.2.0 regression
compared to 3.0.
Hey, this is Redis 3.2.1, and this release should bring some grain of
maturity to Redis 3.2. The list of commits following this note will tell
you the details, but the main things addressed in this release are the
following:
1. A critical bug in Sentinel was hopefully fixed. During the big 3.2
refactoring of Redis Sentinel, in order to implement connection sharing
to make Sentinel able to scale better (few Sentinels to monitor many
masters), a bug was introduced that mis-counted the number of pending
commands in the Redis link. This in turn resulted into an inability to talk
with certain Redis instances. A common result of this bug was the inability
of Redis Sentinel to reconfigure back the old master, after a failover,
when it is reachable again, as the slave of the new master. This was due
to the inability to talk with the old master at all.
2. BITFIELD bugs fixed.
3. GEO commands fixes on syntax errors and edge cases.
4. RESTORE now accepts dumps generated by older Redis versions.
5. Jemalloc now is really configured to save you memory, for a problem a
change in the jemalloc configuration did not really survived when the
3.2.0 release was finalized.
6. TTL and TYPE command no longer alter the last access time of a key, for
LRU evictions purposes. A new TOUCH command was introduced *just* to
update the access time of a key.
7. A bug was fixed in redis-cli, that connected to the instance running on the
port 6379 if there was one, regardless of what was specified.
8. TCP keep alive is now enabled by default. This should fix most ghost
connections problems without resulting in any practical change in otherwise
sane deployments.
9. A Sentinel crash that could happen during failovers was fixed.
And of course, more minor things that you can read in the detailed log
below. There are still reported bugs for 3.2 that were not fixed in this
release, but nothing critical AFAIK, and I wanted to release this one ASAP,
so likely a new release will not be too far.
Enjoy,
Salvatore
+-------------------------------------------------------------------------------
| config set list-max-ziplist-size didn't support negative values, unlike config file
| By oranagra, 2016-05-22 20:35:14 +0300
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/8207e828043e37a0d7e058530d2886bb3ff395ff
src/config.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
+-------------------------------------------------------------------------------
| Fix Sentinel pending commands counting.
| By antirez, 2016-06-16 19:24:34 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/6ad0371c9b4206a7a6692d50c9a301457baf9b6d
This bug most experienced effect was an inability of Redis to
reconfigure back old masters to slaves after they are reachable again
after a failover. This was due to failing to reset the count of the
pending commands properly, so the master appeared fovever down.
Was introduced in Redis 3.2 new Sentinel connection sharing feature
which is a lot more complex than the 3.0 code, but more scalable.
Many thanks to people reporting the issue, and especially to
@sskorgal for investigating the issue in depth.
Hopefully closes #3285.
src/sentinel.c | 1 +
1 file changed, 1 insertion(+)
+-------------------------------------------------------------------------------
| redis-cli: really connect to the right server.
| By antirez, 2016-06-16 17:23:31 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/58f1d446c35e8fe62df7c9ebe10f3c40a386c022
I recently introduced populating the autocomplete help array with the
COMMAND command if available. However this was performed before parsing
the arguments, defaulting to instance 6379. After the connection is
performed it remains stable.
The effect is that if there is an instance running on port 6339,
whatever port you specify is ignored and 6379 is connected to instead.
The right port will be selected only after a reconnection.
Close #3314.
src/redis-cli.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
+-------------------------------------------------------------------------------
| Remove debug printing
| By Jan-Erik Rediger, 2016-05-21 13:50:01 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/b6007b324b81dbd4ffe519b3bdb19ab65fbb407f
src/redis-cli.c | 3 ---
1 file changed, 3 deletions(-)
+-------------------------------------------------------------------------------
| RESTORE: accept RDB dumps with older versions.
| By antirez, 2016-06-16 15:53:57 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/f592b4d3178963878084a522b4fd050772c335ae
Reference issue #3218.
Checking the code I can't find a reason why the original RESTORE
code was so opinionated about restoring only the current version. The
code in to `rdb.c` appears to be capable as always to restore data from
older versions of Redis, and the only places where it is needed the
current version in order to correctly restore data, is while loading the
opcodes, not the values itself as it happens in the case of RESTORE.
For the above reasons, this commit enables RESTORE to accept older
versions of values payloads.
src/cluster.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
+-------------------------------------------------------------------------------
| CLIENT error message was out of date
| By oranagra, 2016-05-23 11:42:21 +0300
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/047ced4473ee35485e22e45db8b8b4a272bf1177
src/networking.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
+-------------------------------------------------------------------------------
| fix georadius returns multiple replies
| By oranagra, 2016-05-23 13:58:50 +0300
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/14e04847ac2960aefe31dccbec63d2503cf09ca5
src/geo.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
+-------------------------------------------------------------------------------
| Minor aesthetic fixes to PR #3264.
| By antirez, 2016-06-16 12:54:33 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/bd23ea3f9f3defbbdf512864ee1a88fd02665a7f
Comment format fixed + local var modified from camel case to underscore
separators as Redis code base normally does (camel case is mostly used
for global symbols like structure names, function names, global vars,
...).
src/bitops.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
+-------------------------------------------------------------------------------
| check WRONGTYPE in BITFIELD before looping on the operations.
| By oranagra, 2016-05-24 23:31:36 +0300
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/2a3ee58ec73b6abdeeb4890937b25191119bce35
optimization: lookup key only once, and grow at once to the max need
fixes #3259 and #3221, and also an early return if wrongtype is discovered by SET
src/bitops.c | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
+-------------------------------------------------------------------------------
| fix crash in BITFIELD GET on non existing key or wrong type see #3259
| By oranagra, 2016-05-24 14:52:43 +0300
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/a2e27b810edfad18b3ecc9c176a4606f94a2f0e4
this was a bug in the recent refactoring: bee963c4459223d874e3294a0d8638a588d33c8e
src/bitops.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
+-------------------------------------------------------------------------------
| fix check when can't send the command to the promoted slave
| By MOON_CLJ, 2016-05-26 13:10:12 +0800
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/26555f5e008b099b888ef39cabec632f4b31a038
src/sentinel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
+-------------------------------------------------------------------------------
| Test TOUCH and new TTL / TYPE behavior about object access time.
| By antirez, 2016-06-15 17:15:18 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/f1c237cb6a647ad5400b0ebce124fd9802ea7f89
tests/test_helper.tcl | 1 +
tests/unit/introspection-2.tcl | 23 +++++++++++++++++++++++
2 files changed, 24 insertions(+)
+-------------------------------------------------------------------------------
| GETRANGE: return empty string with negative, inverted start/end.
| By antirez, 2016-06-15 12:48:58 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/d4831e328759bf5bd07c2c6e6ce1d60e84ba196f
src/bitops.c | 4 ++--
src/t_string.c | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
+-------------------------------------------------------------------------------
| Remove additional round brackets from fix for #3282.
| By antirez, 2016-06-15 12:16:39 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/9942070f5a41fa3bc953e9628a7248aeb7c0befa
src/bitops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
+-------------------------------------------------------------------------------
| bitcount bug:return non-zero value when start > end (both negative)
| By wenduo, 2016-05-30 16:21:08 +0800
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/f45fa5d05f47a5729786a69962119c9b3dc12645
src/bitops.c | 4 ++++
1 file changed, 4 insertions(+)
+-------------------------------------------------------------------------------
| Regression test for #3282.
| By antirez, 2016-06-15 11:49:49 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/0cb86064e602a093a23b56943a7321fe1af64984
tests/unit/bitops.tcl | 10 ++++++++++
1 file changed, 10 insertions(+)
+-------------------------------------------------------------------------------
| TTL and TYPE LRU access fixed. TOUCH implemented.
| By antirez, 2016-06-14 15:33:59 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/b23aa6706ac79a1c86c64aef07bd35e38f10f842
src/db.c | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++-------
src/server.c | 1 +
src/server.h | 6 +++++-
3 files changed, 60 insertions(+), 8 deletions(-)
+-------------------------------------------------------------------------------
| redis-cli help.h updated.
| By antirez, 2016-06-14 14:45:48 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/6e4204fec9c78f3300d887ebc3db014df2c8b33e
src/help.h | 43 +++++++++++++++++++++++++++++--------------
1 file changed, 29 insertions(+), 14 deletions(-)
+-------------------------------------------------------------------------------
| Fix GEORADIUS wrong output with radius > Earth radius.
| By antirez, 2016-05-30 12:45:49 +0200
+--------------------------------------------------------------------------------
https://github.com/antirez/redis/commit/bb43f4cab2f756c0412ca2b94d9e29c3db5025ab
Close #3266