]> git.saurik.com Git - redis.git/blame - 00-RELEASENOTES
Redis 2.6.5
[redis.git] / 00-RELEASENOTES
CommitLineData
c2513ecb 1Redis 2.6 release notes
69396249 2=======================
c2513ecb 3
69396249 4** IMPORTANT ** Check the 'Migrating from 2.4 to 2.6' section at the end of
5 this file for information about what changed between 2.4 and
6 2.6 and how this may affect your application.
c2513ecb 7
1a3e9d95 8--------------------------------------------------------------------------------
9Upgrade urgency levels:
10
11LOW: No need to upgrade unless there are new features you want to use.
12MODERATE: Program an upgrade of the server, but it's not urgent.
44038626 13HIGH: There is a critical bug that may affect a subset of users. Upgrade!
1a3e9d95 14CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
15--------------------------------------------------------------------------------
16
3ccfb5a4 17--[ Redis 2.6.5 ]
18
19UPGRADE URGENCY: MODERATE
20
21Warning: this release of Redis introduces a different behavior in MULTI/EXEC
22 handling of errors. This was done because the new behavior is safer
23 compared to the old one, and should not break any code targeting
24 Redis 2.6 in a critical way.
25
26 For more information check http://redis.io/topics/transactions
27
28* [IMPROVED] RDB/AOF childern now log amount of additional memory used
29 because of copy on write.
30* [BUGFIX] MIGRATE non critical fixes (see commits for details).
31* [BUGFIX] MULTI/EXEC: now EXEC aborts on errors before EXEC.
32* [BUGFIX] Fix integer overflow in zunionInterGenericCommand resulting
33 into Z[INTER|UNION][STORE] commands to crash under extremely
34 unlikely conditions (almost impossible in real world).
35* [BUGFIX] EVALSHA is now case insensitive (and will not crash).
36
2861cd84 37--[ Redis 2.6.4 ]
89514f80 38
2861cd84 39UPGRADE URGENCY: LOW
89514f80 40
2861cd84 41* [IMPROVED] BSD license and copyright notice added to every .c and .h file.
42
43--[ Redis 2.6.2 ]
44
45UPGRADE URGENCY: LOW
0dd62413 46
47* [BUGFIX] The compilation fix for RHLE5 in 2.6.1 was broken. Fixed.
48* [IMPROVED] Linenoise updated, now supports Ctrl+w.
49
2b5fc529 50---[ Redis 2.6.1 ]
51
2861cd84 52UPGRADE URGENCY: LOW
53
2b5fc529 54* [BUGFIX] Compilation on Linux < 2.6.17 or glibc < 2.6 fixed (RHLE5 & co).
55
5eec376c 56---[ Redis 2.6.0 ]
57
2861cd84 58UPGRADE URGENCY: HIGH
59
5eec376c 60* [BUGFIX] Allow AUTH when server is in -BUSY state because of a slow script.
61* [BUGFIX] MULTI/EXEC flow now makes sense when observed in MONITOR
62* [BUGFIX] SCRIPT KILL now uses different error prefixes for different errors.
63* [BUGFIX] Default memory limit for 32bit archs lowered from 3.5 to 3 GB.
64* [BUGFIX] redis-check-dump is now compatible with RDB files generated by 2.6.
65* [IMPROVED] New field in INFO: slave_read_only.
66
500dddc2 67---[ Redis 2.5.14 (2.6 Release Candidate 8) ]
68
69* [BUGFIX] Fixed compilation on FreeBSD.
70* [IMPROVED] SRANDMEMBER <count> that returns multiple random elements.
71* [IMPROVED] Sentinel backported to 2.6. It will be taken in sync with 2.8.
72* [IMPROVED] Helper function for scripting to return errors and status replies.
73* [IMPROVED] SORT by nosort [ASC|DESC] uses sorted set elements ordering.
74* [BUGFIX] Better resistence to system clock skew.
75* [IMPROVED] Warn the user when the configured maxmemory seems odd.
76* [BUGFIX] Hashing function is now murmurhash2 for security purposes.
77* [IMPROVED] Install script no longer uses a template but redis.conf itself.
78
44038626 79---[ Redis 2.5.13 (2.6 Release Candidate 7) ]
80
81UPGRADE URGENCY: HIGH
82
83* [BUGFIX] Theoretical bug in ziplist fixed.
84* [BUGFIX] Better out of memory handling (Log produced in log file).
85* [BUGFIX] Incrementally flush RDB file on slave side while performing the
86 first synchronization with the master. This makes Redis less
87 blocking in environments where disk I/O is slow.
88* [BUGFIX] Don't crash with Lua's redis.call() without arguments.
89* [BUGFIX] Don't crash after a big number of Lua calls on 32 bit systems
90 because of a failed assertion.
91* [BUGFIX] Fix SORT behaviour when called from scripting.
92* [BUGFIX] Adjust slave PING period accordingly to REDIS_HZ define.
93* [BUGFIX] BITCOUNT: fix crash on overflowing arguments.
94* [BUGFIX] Return an error when SELECT argument is not an integer.
95* [BUGFIX] Blocking operations on lists were completely reimplemented for
96 correctness. Now blocking list ops and pushes originated from
97 Lua scripts will play well together and will be replicated
98 and transmitted to the AOF correctly.
99* [IMPROVED] Send async PING before starting replication to avoid blocking if
100 master allows us to connect but it is actually not able to reply.
101* [IMPROVED] Support slave-priority for Redis Sentinel.
102* [IMPROVED] Hiredis library updated.
103
73d3e875 104---[ Redis 2.5.12 (2.6 Release Candidate 6) ]
105
106UPGRADE URGENCY: MODERATE.
107
108* [BUGFIX] Fixed a timing attack on AUTH (Issue #560).
109* [BUGFIX] Don't assume that "char" is signed.
110* [BUGFIX] Check that we have connection before enabling pipe mode.
111* [BUGFIX] Use the optimized version of the function to convert a double to
112 its string representation. Compilation was disabled because of
113 a typo in the #if statement.
114* [IMPROVED} REPLCONF internal command introduced, now INFO shows slaves with
115 correct port numbers. This makes 2.5.12 Redis Sentinel compatible.
116* [IMPROVED] Truncate short write from the AOF for a cleaner restart. On short
117 writes (for instance out of space) Redis will now try to remove
118 the half-written data so that the next restart will work without
119 the need for the "redis-check-aof" utility.
120* [IMPROVED] New in INFO: aof_last_bgrewrite_status
121* [IMPROVED] Allow Pub/Sub in contexts where other commands are blocked.
122* [BUGFIX] mark fd as writable when EPOLLERR or EPOLLHUP is returned by
123 epoll_wait.
124
0c9cf452 125---[ Redis 2.5.11 (2.6 Release Candidate 5) ]
126
127UPGRADE URGENCY: HIGH.
128
129* [BUGFIX] Fixed Hash corruption when loading an RDB file generated by
130 previous versions of Redis that encoded hashes using
131 a different ziplist encoding format for small integers.
132 All the fileds that are integers in the range 0-255 may not
133 be recognized, or duplicated un updates, causing a crash
134 when the ziplist is converted to a real hash. (Issue #547).
135* [BUGFIX] Fixed the count of memory used by output buffers in the
136 setDeferredMultiBulkLength() function.
137
1a3e9d95 138---[ Redis 2.5.10 (2.6 Release Candidate 4) ]
139
140UPGRADE URGENCY: HIGH.
141
142* [BUGFIX] Allow PREFIX to be overwritten on "make install".
143* [BUGFIX] Run the test with just one client if the computer is slow.
144* [BUGFIX] Event port support in our event driven libray.
145* [BUGFIX] Jemalloc updated to 3.0.0. This fixes a possibly AOF rewrite issue.
146 See https://github.com/antirez/redis/issues/504 for info.
147* [BUGFIX] Fixed issue #516: ZINTERSTORE / ZUNIONSTORE with mixed sets/zsets.
148* [BUGFIX] Set fd to writable when poll(2) detects POLLERR or POLLHUP event.
149* [BUGFIX] Fixed RESTORE hash failure (Issue #532).
150* [IMPROVED] Allow an AOF rewrite buffer > 2GB (Related to issue #504).
151* [IMPROVED] Server cron function frequency is now configurable (REDIS_HZ).
152* [IMPROVED] Better, less blocking expired keys collection algorithm.
153* [FEATURE] New commands: BITOP and BITCOUNT.
154* [FEATURE] redis-cli --pipe for mass import.
155
184b8e78 156What's new in Redis 2.5.9 (aka 2.6 Release Candidate 3)
157=======================================================
158
159UPGRADE URGENCY: critical, upgrade ASAP.
160
161* [BUGFIX] Fix for issue #500 (https://github.com/antirez/redis/pull/500).
162 Redis 2.6-RC1 and RC2 may corrupt ziplist-encoded sorted sets
163 produced by Redis 2.4.x.
af2455be 164* [BUGFIX] Fixed several bugs in init.d script.
165* [BUGFIX] syncio.c functions modified for speed and correctness. On osx
166 (and possibly other BSD-based systems) the slave would block on
167 replication to send the SYNC command when the master was not
168 available. This is fixed now, but was not affecting Linux installs.
8afa5b70 169* Now when slave-serve-stale-data is set to yes and the master is down, instead
af2455be 170 of reporting a generic error Redis replies with -MASTERDOWN.
184b8e78 171
0f077815 172What's new in Redis 2.5.8 (aka 2.6 Release Candidate 2)
173=======================================================
174
175UPGRADE URGENCY: high for all the users of the KEYS command, otherwise low.
176
177* [BUGFIX] Fix for KEYS command: if the DB contains keys with expires the KEYS
178 command may return the wrong output, having duplicated or missing
179 keys. See issue #487 and #488 on github for details.
180
7c5d96d9 181What's new in Redis 2.5.7 (aka 2.6 Release Candidate 1)
182=======================================================
183
184UPGRADE URGENCY: upgrade not recommended because this is an RC release.
185
186* This is the first release candidate for Redis 2.6. We are not aware of
187 bugs, but part of this code is young and was never tested in production
188 environments, so handle with care.
c2513ecb 189
7c5d96d9 190An overview of new features and changes in Redis 2.6.x
191======================================================
c2513ecb 192
193* Server side Lua scripting, see http://redis.io/commands/eval
194* Virtual Memory removed (was deprecated in 2.4)
195* Hardcoded limits about max number of clients removed.
196* AOF low level semantics is generally more sane, and especially when used
197 in slaves.
198* Milliseconds resolution expires, also added new commands with milliseconds
199 precision (PEXPIRE, PTTL, ...).
748f206e 200* Better memory usage for "small" lists, ziplists and hashes when fields or
201 values contain small integers.
b330de57 202* Read only slaves.
9a8d51ad 203* New bit opeations: BITCOUNT and BITOP commands.
518e7202 204* Clients max output buffer soft and hard limits. You can specifiy different
c2513ecb 205 limits for different classes of clients (normal,pubsub,slave).
9a8d51ad 206* More incremental (less blocking) expired keys collection algorithm, in
207 practical terms this means that Redis is more responsive when a very
208 big number of keys expire about at the same time.
c2513ecb 209* AOF is now able to rewrite aggregate data types using variadic commands,
210 often producing an AOF that is faster to save, load, and is smaller in size.
211* Every redis.conf directive is now accepted as a command line option for the
212 redis-server binary, with the same name and number of arguments.
213* Hash table seed randomization for protection against collisions attacks.
214* Performances improved when writing large objects to Redis.
748f206e 215* Integrated memory test, see redis-server --test-memory.
216* INCRBYFLOAT and HINCRBYFLOAT commands.
217* New DUMP, RESTORE, MIGRATE commands (back ported from Redis Cluster to 2.6).
218* CRC64 checksump in RDB files.
219* Better MONITOR output and behavior (now commands are logged before execution).
220* "Software Watchdog" feature to debug latency issues.
c2513ecb 221* Significant parts of the core refactored or rewritten. New internal APIs
222 and core changes allowed to develop Redis Cluster on top of the new code,
223 however for 2.6 all the cluster code was removed, and will be released with
224 Redis 3.0 when it is more complete and stable.
225* Redis ASCII art logo added at startup.
226* Crash report on memory violation or failed asserts improved significantly
227 to make debugging of hard to catch bugs simpler.
228* redis-benchmark improvements: ability to run selected tests,
229 CSV output, faster, better help.
230* redis-cli improvements: --eval for comfortable development of Lua scripts.
231* SHUTDOWN now supports two optional arguments: "SAVE" and "NOSAVE".
232* INFO output split into sections, the command is now able to just show
233 pecific sections.
234* New statistics about how many time a command was called, and how much
235 execution time it used (INFO commandstats).
236* More predictable SORT behavior in edge cases.
748f206e 237* Better support for big endian and *BSD systems.
238* Build system improved.
c2513ecb 239
69396249 240Migrating from 2.4 to 2.6
241=========================
242
243Redis 2.4 is mostly a strict subset of 2.6. However there are a few things
244that you should be aware of:
245
246* You can't use .rdb and AOF files generated with 2.6 into a 2.4 instance.
013189e7 247* 2.6 slaves can be attached to 2.4 masters, but not the contrary, and only
69396249 248 for the time needed to perform the version upgrade.
249
250There are also a few API differences, that are unlikely to cause problems,
251but it is better to keep them in mind:
252
253* SORT now will refuse to sort in numerical mode elements that can't be parsed
254 as numbers.
255* EXPIREs now all have millisecond resolution (but this is very unlikely to
256 break code that was not conceived exploting the previous resolution error
257 in some way.)
258* INFO output is a bit different now, and contains empty lines and comments
259 starting with '#'. All the major clients should be already fixed to work
260 with the new INFO format.
261* Slaves are only read-only by default (but you can change this easily
262 setting the "slave-read-only" configuration option to "no" editing your
263 redis.conf or using CONFIG SET.
264
265The following INFO fields were renamed for consistency:
266
267 changes_since_last_save -> rdb_changes_since_last_save
268 bgsave_in_progress -> rdb_bgsave_in_progress
269 last_save_time -> rdb_last_save_time
270 last_bgsave_status -> rdb_last_bgsave_status
271 bgrewriteaof_in_progress -> aof_rewrite_in_progress
272 bgrewriteaof_scheduled -> aof_rewrite_scheduled
273
274The following redis.conf and CONFIG GET / SET parameters changed:
275
276 * hash-max-zipmap-entries, now replaced by hash-max-ziplist-entries
277 * hash-max-zipmap-value, now replaced by hash-max-ziplist-value
278 * glueoutputbuf option was now completely removed (was deprecated)
279
c2513ecb 280--------------------------------------------------------------------------------
281
282Credits: Where not specified the implementation and design are done by
283Salvatore Sanfilippo and Pieter Noordhuis. Thanks to VMware for making all
284this possible. Also many thanks to all the other contributors and the amazing
285community we have.
286
287See commit messages for more credits.
288
289Cheers,
290Salvatore