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