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