1 Redis 2.6 release notes
2 =======================
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.
8 --------------------------------------------------------------------------------
9 Upgrade urgency levels:
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.
13 HIGH: There is a critical bug that may affect some part of users. Upgrade!
14 CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
15 --------------------------------------------------------------------------------
17 ---[ Redis 2.5.11 (2.6 Release Candidate 5) ]
19 UPGRADE URGENCY: HIGH.
21 * [BUGFIX] Fixed Hash corruption when loading an RDB file generated by
22 previous versions of Redis that encoded hashes using
23 a different ziplist encoding format for small integers.
24 All the fileds that are integers in the range 0-255 may not
25 be recognized, or duplicated un updates, causing a crash
26 when the ziplist is converted to a real hash. (Issue #547).
27 * [BUGFIX] Fixed the count of memory used by output buffers in the
28 setDeferredMultiBulkLength() function.
30 ---[ Redis 2.5.10 (2.6 Release Candidate 4) ]
32 UPGRADE URGENCY: HIGH.
34 * [BUGFIX] Allow PREFIX to be overwritten on "make install".
35 * [BUGFIX] Run the test with just one client if the computer is slow.
36 * [BUGFIX] Event port support in our event driven libray.
37 * [BUGFIX] Jemalloc updated to 3.0.0. This fixes a possibly AOF rewrite issue.
38 See https://github.com/antirez/redis/issues/504 for info.
39 * [BUGFIX] Fixed issue #516: ZINTERSTORE / ZUNIONSTORE with mixed sets/zsets.
40 * [BUGFIX] Set fd to writable when poll(2) detects POLLERR or POLLHUP event.
41 * [BUGFIX] Fixed RESTORE hash failure (Issue #532).
42 * [IMPROVED] Allow an AOF rewrite buffer > 2GB (Related to issue #504).
43 * [IMPROVED] Server cron function frequency is now configurable (REDIS_HZ).
44 * [IMPROVED] Better, less blocking expired keys collection algorithm.
45 * [FEATURE] New commands: BITOP and BITCOUNT.
46 * [FEATURE] redis-cli --pipe for mass import.
48 What's new in Redis 2.5.9 (aka 2.6 Release Candidate 3)
49 =======================================================
51 UPGRADE URGENCY: critical, upgrade ASAP.
53 * [BUGFIX] Fix for issue #500 (https://github.com/antirez/redis/pull/500).
54 Redis 2.6-RC1 and RC2 may corrupt ziplist-encoded sorted sets
55 produced by Redis 2.4.x.
56 * [BUGFIX] Fixed several bugs in init.d script.
57 * [BUGFIX] syncio.c functions modified for speed and correctness. On osx
58 (and possibly other BSD-based systems) the slave would block on
59 replication to send the SYNC command when the master was not
60 available. This is fixed now, but was not affecting Linux installs.
61 * Now when slave-serve-stale-data is set to yes and the master is down, instead
62 of reporting a generic error Redis replies with -MASTERDOWN.
64 What's new in Redis 2.5.8 (aka 2.6 Release Candidate 2)
65 =======================================================
67 UPGRADE URGENCY: high for all the users of the KEYS command, otherwise low.
69 * [BUGFIX] Fix for KEYS command: if the DB contains keys with expires the KEYS
70 command may return the wrong output, having duplicated or missing
71 keys. See issue #487 and #488 on github for details.
73 What's new in Redis 2.5.7 (aka 2.6 Release Candidate 1)
74 =======================================================
76 UPGRADE URGENCY: upgrade not recommended because this is an RC release.
78 * This is the first release candidate for Redis 2.6. We are not aware of
79 bugs, but part of this code is young and was never tested in production
80 environments, so handle with care.
82 An overview of new features and changes in Redis 2.6.x
83 ======================================================
85 * Server side Lua scripting, see http://redis.io/commands/eval
86 * Virtual Memory removed (was deprecated in 2.4)
87 * Hardcoded limits about max number of clients removed.
88 * AOF low level semantics is generally more sane, and especially when used
90 * Milliseconds resolution expires, also added new commands with milliseconds
91 precision (PEXPIRE, PTTL, ...).
92 * Better memory usage for "small" lists, ziplists and hashes when fields or
93 values contain small integers.
95 * New bit opeations: BITCOUNT and BITOP commands.
96 * Clients max output buffer soft and hard limits. You can specifiy different
97 limits for different classes of clients (normal,pubsub,slave).
98 * More incremental (less blocking) expired keys collection algorithm, in
99 practical terms this means that Redis is more responsive when a very
100 big number of keys expire about at the same time.
101 * AOF is now able to rewrite aggregate data types using variadic commands,
102 often producing an AOF that is faster to save, load, and is smaller in size.
103 * Every redis.conf directive is now accepted as a command line option for the
104 redis-server binary, with the same name and number of arguments.
105 * Hash table seed randomization for protection against collisions attacks.
106 * Performances improved when writing large objects to Redis.
107 * Integrated memory test, see redis-server --test-memory.
108 * INCRBYFLOAT and HINCRBYFLOAT commands.
109 * New DUMP, RESTORE, MIGRATE commands (back ported from Redis Cluster to 2.6).
110 * CRC64 checksump in RDB files.
111 * Better MONITOR output and behavior (now commands are logged before execution).
112 * "Software Watchdog" feature to debug latency issues.
113 * Significant parts of the core refactored or rewritten. New internal APIs
114 and core changes allowed to develop Redis Cluster on top of the new code,
115 however for 2.6 all the cluster code was removed, and will be released with
116 Redis 3.0 when it is more complete and stable.
117 * Redis ASCII art logo added at startup.
118 * Crash report on memory violation or failed asserts improved significantly
119 to make debugging of hard to catch bugs simpler.
120 * redis-benchmark improvements: ability to run selected tests,
121 CSV output, faster, better help.
122 * redis-cli improvements: --eval for comfortable development of Lua scripts.
123 * SHUTDOWN now supports two optional arguments: "SAVE" and "NOSAVE".
124 * INFO output split into sections, the command is now able to just show
126 * New statistics about how many time a command was called, and how much
127 execution time it used (INFO commandstats).
128 * More predictable SORT behavior in edge cases.
129 * Better support for big endian and *BSD systems.
130 * Build system improved.
132 Migrating from 2.4 to 2.6
133 =========================
135 Redis 2.4 is mostly a strict subset of 2.6. However there are a few things
136 that you should be aware of:
138 * You can't use .rdb and AOF files generated with 2.6 into a 2.4 instance.
139 * 2.4 slaves can be attached to 2.6 masters, but not the contrary, and only
140 for the time needed to perform the version upgrade.
142 There are also a few API differences, that are unlikely to cause problems,
143 but it is better to keep them in mind:
145 * SORT now will refuse to sort in numerical mode elements that can't be parsed
147 * EXPIREs now all have millisecond resolution (but this is very unlikely to
148 break code that was not conceived exploting the previous resolution error
150 * INFO output is a bit different now, and contains empty lines and comments
151 starting with '#'. All the major clients should be already fixed to work
152 with the new INFO format.
153 * Slaves are only read-only by default (but you can change this easily
154 setting the "slave-read-only" configuration option to "no" editing your
155 redis.conf or using CONFIG SET.
157 The following INFO fields were renamed for consistency:
159 changes_since_last_save -> rdb_changes_since_last_save
160 bgsave_in_progress -> rdb_bgsave_in_progress
161 last_save_time -> rdb_last_save_time
162 last_bgsave_status -> rdb_last_bgsave_status
163 bgrewriteaof_in_progress -> aof_rewrite_in_progress
164 bgrewriteaof_scheduled -> aof_rewrite_scheduled
166 The following redis.conf and CONFIG GET / SET parameters changed:
168 * hash-max-zipmap-entries, now replaced by hash-max-ziplist-entries
169 * hash-max-zipmap-value, now replaced by hash-max-ziplist-value
170 * glueoutputbuf option was now completely removed (was deprecated)
172 --------------------------------------------------------------------------------
174 Credits: Where not specified the implementation and design are done by
175 Salvatore Sanfilippo and Pieter Noordhuis. Thanks to VMware for making all
176 this possible. Also many thanks to all the other contributors and the amazing
179 See commit messages for more credits.