00-RELEASENOTES 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. Redis 3.0 release notes
  2. =======================
  3. --------------------------------------------------------------------------------
  4. Upgrade urgency levels:
  5. LOW: No need to upgrade unless there are new features you want to use.
  6. MODERATE: Program an upgrade of the server, but it's not urgent.
  7. HIGH: There is a critical bug that may affect a subset of users. Upgrade!
  8. CRITICAL: There is a critical bug affecting MOST USERS. Upgrade ASAP.
  9. --------------------------------------------------------------------------------
  10. --[ Redis 3.0.7 ] Release date: 28 jan 2016
  11. Upgrade urgency MODERATE: this release fixes important Redis Cluster bugs.
  12. * [FIX] avg_ttl reporting in INFO improved. (Salvatore Sanfilippo)
  13. * [FIX] Redis Cluster address update (via gossip section) processing improved
  14. to avoid initiating inwanted handshakes.
  15. * [FIX] Many fixes to MIGRATE multiple keys implementation. The command
  16. could handle errors in a faulty way leading to crashes or other
  17. unexpected behaviors. MIGRATE command refactoring.
  18. (The analysis of the faulty conditions was conducted by
  19. Kevin McGehee. The fix was developed by Salvatore Sanfilippo)
  20. * [FIX] A Redis Cluster node crash was fixed because of wrong handling of
  21. node->slaveof pointers.
  22. (Reported by JackyWoo, fixed by Salvatore Sanfilippo)
  23. * [FIX] Fix redis-trib rebalance when nodes need to be left empty because
  24. the specified weight is zero.
  25. (Reported by Shahar Mor, fixed by Salvatore Sanfilippo)
  26. * [FIX] MIGRATE: Never send -ASK redirections for MIGRATE when there are
  27. open slots. Redis-trib and other cluster management utility must
  28. always be free to move keys between nodes about open slots, in order
  29. to reshard, fix the cluster configuration, and so forth.
  30. (Salvatore Sanfilippo)
  31. * [FIX] Redis-trib is now able to fix more errors. A new CLUSTER subcommand
  32. called BUMPEPOCH was introduced in order to support new modes
  33. for the "fix" subcommand. (Salvatore Sanfilippo)
  34. * [NEW] Cluster/Sentinel tests now use OSX leak to perform leak detection
  35. at the end of every unit. (Salvatore Sanfilippo)
  36. * [NEW] Detect and show server crashes during Cluster/Sentinel tests.
  37. (Salvatore Sanfilippo)
  38. * [NEW] More reliable Cluster/Sentinel test becuase of timing errors and
  39. -LOADING errors. (Salvatore Sanfilippo)
  40. --[ Redis 3.0.6 ] Release date: 18 Dec 2015
  41. Upgrade urgency: MODERATE. We fixed a crash that happens very rarely, so
  42. updating does not hurt, but most users are unlikely to
  43. experience this condition because it requires some odd
  44. timing. However if you are a Redis Cluster user, upgrading
  45. is strongly adviced since this release includes very
  46. important improvements to Redis Cluster.
  47. * [FIX] lua_struct.c/getnum security issue fixed. (Luca Bruno discovered it,
  48. patched by Sun He and Chris Lamb)
  49. * [FIX] Redis Cluster replica migration fixed. See issue #2924 for details.
  50. (Salvatore Sanfilippo)
  51. * [FIX] Fix a race condition in processCommand() because of interactions
  52. with freeMemoryIfNeeded(). Details in issue #2948 and especially
  53. in the commit message d999f5a. (Race found analytically by
  54. Oran Agra, patch by Salvatore Sanfilippo)
  55. * [NEW] Backported from the upcoming Redis 3.2:
  56. MIGRATE now supports an extended multiple-keys pipelined mode, which
  57. is an order of magnitude faster. Redis Cluster now uses this mode
  58. in order to perform reshardings and rebalancings. (Salvatore Sanfilippo)
  59. * [NEW] Backported from the upcoming Redis 3.2:
  60. Redis Cluster has now support for rebalancing via the redis-trib
  61. rebalance command. Demo here:
  62. https://asciinema.org/a/0tw2e5740kouda0yhkqrm5790
  63. Official documentation will be available ASAP. (Salvatore Sanfilippo)
  64. * [NEW] Redis Cluster redis-trib.rb new "info" subcommand.
  65. * [NEW] Redis Cluster tests improved. (Salvatore Sanfilippo)
  66. * [NEW] Log offending memory access address on SIGSEGV/SIGBUS (Salvatore
  67. Sanfilippo)
  68. --[ Redis 3.0.5 ] Release date: 15 Oct 2015
  69. Upgrade urgency: MODERATE, the most important thing is a fix in the replication
  70. code that may make the slave hanging forever if the master
  71. remains with an open socket even if it is no longer able to
  72. reply.
  73. * [FIX] MOVE now moves the TTL as well. A bug lasting forever... finally
  74. fixed thanks to Andy Grunwald that reported it.
  75. (reported by Andy Grunwald, fixed by Salvatore Sanfilippo)
  76. * [FIX] Fix a false positive in HSTRLEN test.
  77. * [FIX] Fix a bug in redis-cli --pipe mode that was not able to read back
  78. replies from the server incrementally. Now a mass import will use
  79. a lot less memory, and you can use --pipe to do incremental streaming.
  80. (reported by Twitter user @fsaintjacques, fixed by Salvatore
  81. Sanfilippo)
  82. * [FIX] Slave detection of master timeout. (fixed by Kevin McGehee, refactoring
  83. and regression test by Salvatore Sanfilippo)
  84. * [NEW] Cluster: redis-trib fix can fix an additional case for opens lots.
  85. (Salvatore Sanfilippo)
  86. * [NEW] Cluster: redis-trib import support for --copy and --replace options
  87. (David Thomson)
  88. --[ Redis 3.0.4 ] Release date: 8 Sep 2015
  89. Upgrade urgency: HIGH for Redis and Sentinel. However note that in order to
  90. fix certain replication bugs, the replication internals were
  91. modified in a very heavy way. So while this release is
  92. conceptually saner, it may contain regressions. For this
  93. reason, before the release, QA activities were performed by
  94. me (antirez) and Redis Labs and no evident bug was found.
  95. * [FIX] A number of bugs related to replication PSYNC and the (yet experimental)
  96. diskless replication feature were fixed. The bugs could lead to
  97. inconsistency between masters and slaves. (Salvatore Sanfilippo, Oran
  98. Agra fixed the issue found by Yuval Inbar)
  99. * [FIX] A replication bug in the context of PSYNC partial resynchonization was
  100. found and fixed. This bug happens even when diskless replication is off
  101. in the case different slaves connect at different times while the master
  102. is creating an RDB file, and later a partial resynchronization is
  103. attempted by a slave that connected not as the first one. (Salvatore
  104. Sanfilippo, Oran Agra)
  105. * [FIX] Chained replication and PSYNC interactions leading to potential stale
  106. chained slaves data set, see issue #2694. (Salvatore Sanfilippo fixed
  107. an issue reported by "GeorgeBJ" user at Github)
  108. * [FIX] redis-cli --scan iteration fixed when returned cursor overflows
  109. 32 bit signed integer. (Ofir Luzon, Yuval Inbar)
  110. * [FIX] Sentinel: fixed a bug during the master switch process, where for a
  111. failed conditional check, the new configuration is rewritten, during
  112. a small window of time, in a corrupted way where the master is
  113. also reported to be one of the slaves. This bug is rare to trigger
  114. but apparently it happens in the wild, and the effect is to see
  115. a replication loop where the master will try to replicate with itself.
  116. A detailed explanation of the bug and its effects can be found in
  117. the commit message here: https://github.com/antirez/redis/commit/c20218eb5770b2cafb12bc7092313b8358fedc0a.
  118. The bug was found by Jan-Erik Rediger using a static analyzer and
  119. fixed by Salvatore Sanfilippo.
  120. * [FIX] Sentinel lack of arity checks for certain commands.
  121. (Rogerio Goncalves, Salvatore Sanfilippo)
  122. * [NEW] Replication internals rewritten in order to be more resistant to bugs.
  123. The replication handshake in the slave side was rewritten as a non
  124. blocking state machine. (Salvatore Sanfilippo, Oran Agra)
  125. * [NEW] New "replication capabilities" feature introduced in order to signal
  126. from the master to the slave what are the features supported, so that
  127. the master can choose the kind of replication to start (diskless or
  128. not) when master and slave are of different versions. (Oran Agra,
  129. Salvatore Sanfilippo)
  130. * [NEW] Log clients details when SLAVEOF command is received. (Salvatore
  131. Sanfilippo with inputs from Nick Craver and Marc Gravell).
  132. --[ Redis 3.0.3 ] Release date: 17 Jul 2015
  133. Upgrade urgency: LOW for Redis and Sentinel.
  134. * [FIX] Fix blocking operations timeout precision when HZ is at its default
  135. value (not increased) and there are thousands of clients connected
  136. at the same time. This bug affected Sidekiq users that experienced
  137. a very long delay for BLPOP and similar commands to return for
  138. timeout. Check commit b029ff1 for more info. (Salvatore Sanfilippo)
  139. * [FIX] MIGRATE "creating socket: Invalid argument" error fix. Check
  140. issues #2609 and #2612 for more info. (Salvatore Sanfilippo)
  141. * [FIX] Be able to connect to the master even when the slave is bound to
  142. just the loopback interface and has no valid public address in the
  143. network the master is reacahble. (Salvatore Sanfilippo)
  144. * [FIX] ZADD with options encoding promotion fixed. (linfangrong)
  145. * [FIX] Reset aof_delayed_fsync on CONFIG RESETSTATS. (Tom Kiemes)
  146. * [FIX] PFCOUNT key parsing in cluster fixed. (MOON_CLJ)
  147. * [FIX] Fix Solaris compilation of Redis 3.0. (Jan-Erik Rediger)
  148. * [NEW] Variadic EXISTS command. Now the command accepts multiple arguments
  149. and returns the total count of existing keys.
  150. --[ Redis 3.0.2 ] Release date: 4 Jun 2015
  151. Upgrade urgency: HIGH for Redis because of a security issue.
  152. LOW for Sentinel.
  153. * [FIX] Critical security issue fix by Ben Murphy: http://t.co/LpGTyZmfS7
  154. * [FIX] SMOVE reply fixed when src and dst keys are the same. (Glenn Nethercutt)
  155. * [FIX] Lua cmsgpack lib updated to support str8 type. (Sebastian Waisbrot)
  156. * [NEW] ZADD support for options: NX, XX, CH. See new doc at redis.io.
  157. (Salvatore Sanfilippo)
  158. * [NEW] Senitnel: CKQUORUM and FLUSHCONFIG commands back ported.
  159. (Salvatore Sanfilippo and Bill Anderson)
  160. --[ Redis 3.0.1 ] Release date: 5 May 2015
  161. Upgrade urgency: LOW for Redis and Cluster, MODERATE for Sentinel.
  162. * [FIX] Sentinel memory leak due to hiredis fixed. (Salvatore Sanfilippo)
  163. * [FIX] Sentinel memory leak on duplicated instance. (Charsyam)
  164. * [FIX] Redis crash on Lua reaching output buffer limits. (Yossi Gottlieb)
  165. * [FIX] Sentinel flushes config on +slave events. (Bill Anderson)
  166. --[ Redis 3.0.0 ] Release date: 1 Apr 2015
  167. >> What's new in Redis 3.0 compared to Redis 2.8?
  168. * Redis Cluster: a distributed implementation of a subset of Redis.
  169. * New "embedded string" object encoding resulting in less cache
  170. misses. Big speed gain under certain work loads.
  171. * AOF child -> parent final data transmission to minimize latency due
  172. to "last write" during AOF rewrites.
  173. * Much improved LRU approximation algorithm for keys eviction.
  174. * WAIT command to block waiting for a write to be transmitted to
  175. the specified number of slaves.
  176. * MIGRATE connection caching. Much faster keys migraitons.
  177. * MIGRATE new options COPY and REPLACE.
  178. * CLIENT PAUSE command: stop processing client requests for a
  179. specified amount of time.
  180. * BITCOUNT performance improvements.
  181. * CONFIG SET accepts memory values in different units (for example
  182. you can use "CONFIG SET maxmemory 1gb").
  183. * Redis log format slightly changed reporting in each line the role of the
  184. instance (master/slave) or if it's a saving child log.
  185. * INCR performance improvements.
  186. >> Refactoring changes (no new features nor bug fixes)
  187. * Blocking operations full refactoring (blocked.c)
  188. * Client output buffer memory tracking refactored.
  189. Changes between RC6 and 3.0.0 stable:
  190. >> General changes
  191. * Fixes to diskless replication. (Oran Agra)
  192. * Test for BLPOP replication on role change. (Salvatore Sanfilippo)
  193. * prepareClientToWrite() error handling improvements. (Salvatore Sanfilippo)
  194. * Remove dict.c no longer used function. (Salvatore Sanfilippo)
  195. >> Cluster changes
  196. None
  197. >> Sentinel changes
  198. None
  199. --[ Redis 3.0.0 RC6 (version 2.9.106) ] Release date: 24 mar 2015
  200. Upgrade urgency: HIGH because of bugs related to Redis Custer and replication.
  201. This is the 6th release candidate of Redis 3.0.0. This release fixes important
  202. issues discovered during stress testing, and implements safest behavior
  203. for blocking operations during clients reshardings, and a new much needed
  204. functionality of Redis Cluster manual failovers.
  205. In order to fix certain bugs quite a bit of refactoring was needed which
  206. is usually non advisabble in a Release Candidate, but needed in order to
  207. end with a clean fix.
  208. >> General changes
  209. * [FIX] Redis (non clustered & clustered) replication bug involving blocking
  210. operations: see issue #2473. (Salvatore Sanfilippo)
  211. >> Cluster changes
  212. * [FIX] clientsArePaused() fix crashing the old master during manual failover.
  213. (Salvatore Sanfilippo)
  214. * [FIX] Lua scripts replication in Redis Cluster was totally broken.
  215. (Salvatore Sanfilippo)
  216. * [FIX] Redirect clients blocked into list operations when the hash slot
  217. they are blocked into is migrated to another instance or the cluster
  218. state turns into "fail". (Salvatore Sanfilippo)
  219. * [NEW] TAKEOVER option for CLUSTER FAILOVER implemented. It is now possible
  220. to fix a cluster manually in the minority side of the partition, for
  221. example in order to allow for multi DC setups & recovery.
  222. (Salvatore Sanfilippo)
  223. >> Sentinel changes
  224. No changes in Sentinel.
  225. --[ Redis 3.0.0 RC5 (version 2.9.105) ] Release date: 20 mar 2015
  226. Upgrade urgency: Moderate for Redis Cluster users, low otherwise.
  227. This is the 5th release candidate of Redis 3.0.0, released in order to fix
  228. a moderate bug in Redis Cluster. This RC does not shift in the future the
  229. Redis 3.0.0 final release which is scheduled in a few days (we are in the
  230. process of finishing the documentation for Redis Cluster).
  231. >> General changes
  232. * [FIX] Fix LATENCY command crash. (Salvatore Sanfilippo, thx to Ingmar)
  233. * [FIX] Config: missing activerehashing option support in CONFIG SET added.
  234. (Salvatore Sanfilippo, thx to Bill Anderson)
  235. * [FIX] Fix for backtrace generation issue. (Mariano Pérez Rodríguez, Matt Stancliff, Salvatore Sanfilippo)
  236. * [NEW] Redis-cli --latency-dist backported from unstable.
  237. (Salvatore Sanfilippo)
  238. >> Cluster changes
  239. * [FIX] Avoid redundant SELECT in MIGRATE. (Tommy Wang, Salvatore Sanfilippo)
  240. * [FIX] More robust slave check in CLUSTER REPLICATE. (Salvatore Sanfilippo)
  241. * [FIX] Fixed possible Redis Cluster node crash due to wrong separation of
  242. concerns between getNodeByQuery() and Cluster global state update
  243. fnuction. (Salvatore Sanfilippo, thx to Ingmar)
  244. * [NEW] Add command CLUSTER MYID to easily featch instance ID. (Michel Martens)
  245. >> Sentinel changes
  246. * [NEW] Support for CLIENT command added. It was missing in the command table.
  247. (Leandro López)
  248. --[ Redis 3.0.0 RC4 (version 2.9.104) ] Release date: 13 feb 2015
  249. Upgrade urgency: High for Redis if you use LRU eviction, low otherwise.
  250. This is the 4th release candidate of Redis 3.0.0, it fixes problems with
  251. LRU eviction that are not present in older release (2.8.x is not affected)
  252. and adds new tools to inspect latency and load-test LRU.
  253. >> General changes
  254. * [FIX] redis-cli CSV output NIL spurious newline removed. (Matt Collier)
  255. * [FIX] Memory efficiency test in unit test is now much faster: it affacted
  256. the total "make test" execution time in a bad way. (Salvatore
  257. Sanfilippo)
  258. * [FIX] Fixes and improvements to dict.c and LRU eviction. Redis 3.0.0 new
  259. LRU eviction had bugs creating high latency spikes when LRU was
  260. happening during the keys dictionary rehashing. This bug is not
  261. present into 2.8, was 3.0 specific. As a side effect of this issue
  262. dict.c is now improved, and LRU algorithm is more precise (better
  263. approximates true LRU). This was a joint effort, see issue
  264. #2306 for details. (Oran Agra, Sun He, Salvatore Sanfilippo).
  265. Thanks to Charsyam for spotting an integer overflow.
  266. * [NEW] New latency tool: redis-cli --latency-dist is able to show an
  267. xterm-256 based spectrum of latencies over time. (Salvatore Sanfilippo)
  268. * [NEW] redis-cli --lru-test implemented (cache workload simulator). (Salvatore
  269. Sanfilippo)
  270. * [NEW] redis-cli --stat now shows LOAD when Redis is loading data.
  271. * [NEW] Support "1G" etc. units in CONFIG SET. (Chris Lamb, Salvatore
  272. Sanfilippo)
  273. >> Cluster changes
  274. * None.
  275. >> Sentinel changes
  276. * None.
  277. --[ Redis 3.0.0 RC3 (version 2.9.103) ] Release date: 30 jan 2015
  278. Upgrade urgency: High for Redis Cluster users, low otherwise.
  279. This is the third release candidate for Redis 3.0.0, the new RC fixes
  280. several critical issues with Redis Cluster.
  281. >> General changes
  282. * [FIX] AOF bug unlikely to happen in practice and mostly harmless: child
  283. process segfaults when parent is not reachable via pipe. (Sun He)
  284. * [FIX] Scripting engine now reports an error when misused with Lua debug
  285. hooks, instead of crashing. (Salvatore Sanfilippo)
  286. >> Cluster changes
  287. * [FIX] Several issues with Redis Cluster internal nodes objects handling.
  288. (Matt Stancliff & Salvatore Sanfilippo)
  289. * [FIX] Improvements in the Cluster test.
  290. (Matt Stancliff & Salvatore Sanfilippo).
  291. * [FIX] Cluster memory leaks / double frees (Matt Stancliff).
  292. * [FIX] /dev/urandom surrogate for generation of unique IDs in a more
  293. cheap way. (Salvatore Sanfilippo)
  294. * [FIX] Fixes and improvements to PING / PONG packets gossip sections
  295. in order to improve (and fix) failure detection and speedup
  296. cluster info propagation. (Salvatore Sanfilippo)
  297. * [NEW] CLUSTER count-failure-reports command added. (Salvatore Sanfilippo)
  298. >> Sentinel changes
  299. No changes for Sentinel.
  300. --[ Redis 3.0.0 RC2 (version 2.9.102) ] Release date: 13 jan 2015
  301. Upgrade urgency: LOW.
  302. This is the second release candidate of Redis 3.0.0. The major changes
  303. are back porting of things implemented into the unstable branch while
  304. this was still possible (with the new development model adopted only
  305. bug fixes will be merged in the future).
  306. RC2 also fixes a few Redis Cluster non critical bugs.
  307. >> General changes
  308. * [FIX] A number of minor bug fixes.
  309. * [NEW] Diskless replication backportede.
  310. * [NEW] Lua bitops and updated cmsgpack backported.
  311. * [NEW] Transparent Huge Pages warnings and reporting backported.
  312. >> Cluster changes
  313. * [FIX] Fix PUBLISH cluster bus message count field.
  314. * [FIX] It is no longer possible to write outside node hash slots using Lua.
  315. * [FIX] Valgrind warnings (no actual bugs).
  316. * [FIX] Less strict in acceptiong myself->ip if it's not populated.
  317. * [NEW] Better testing of Lua scripts.
  318. >> Sentinel changes
  319. No changes to Sentinel.
  320. --[ Redis 3.0.0 RC1 (version 2.9.101) ] Release date: 9 oct 2014
  321. This is the first release candidate of Redis 3.0.0.
  322. >> General changes
  323. * [FIX] An very large number of small fixes, old and new, merged in the
  324. context of a the issue #1906. Please see the issue page here
  325. for exact credits: https://github.com/antirez/redis/pull/1906
  326. of each commit. (Matt Stancliff and many others).
  327. * [FIX] SAVE is no longer propagated to AOF / slaves.
  328. * [FIX] GETRANGE test no longer fails for 32 bit builds (Matt Stancliff).
  329. * [FIX] Limit SCAN latency when the hash table is in an odd state (very few
  330. populted buckets because rehashing is in progress). (Xiaost and
  331. Salvatore Sanfilippo)
  332. * [NEW] Redis is now able to load truncated AOF files without requiring a
  333. redis-check-aof utility run. The default now is to load truncated
  334. (but apparently not corrupted) AOFs, you can change this in redis.conf.
  335. (Salvatore Sanfilippo).
  336. * [NEW] DEBUG POPULATE two args form implemented. It is now possible to
  337. call it with DEBUG POPULATE <count> <prefix>. Default prefix
  338. is "key:" as usually.
  339. * [NEW] INCR: Modify incremented object in-place when possible. This results
  340. in speed improvements + possibly better memory locality.
  341. >> Cluster changes
  342. * [FIX] Cluster: claim ping_sent time even if we can't connect.
  343. * [FIX] redis-trib should not abort easily on connection issues.
  344. * [FIX] Cluster test: less console-spammy resharding test.
  345. * [FIX] Fix logic to detect we are among a minority.
  346. * [FIX] Process gossip section only for known nodes.
  347. * [NEW] Redis Cluster is stable and tested enough, there is a clear MVP,
  348. so it was promoted from beta to stable.
  349. * [NEW] New unit 09, Pub/Sub across the cluster.
  350. * [NEW] New unit 08, update messages.
  351. * [NEW] New cluster option to work with partial slots coverage.
  352. * [NEW] More chatty cluster slaves when failover is stalled. They log reason
  353. with rate limiting, only when reason changes or a given time
  354. has elapsed.
  355. >> Sentinel changes
  356. * [FIX] Sentinel critical bug fixed: the absolute majority was computed in a
  357. wrong way because of a programming error. Now the implementation does
  358. what the specification says and the majority to authorize a failover
  359. (that should not be confused with the ODOWN quorum) is the majority of
  360. *all* the Sentinels ever seen for a given master, regardless of their
  361. current state.
  362. * [FIX] Resolved a memory leak in the hiredis library causing a memory leak
  363. in Redis Sentinel when a monitored instance or another Sentinel is
  364. unavailable. Every reconnection attempt will leak a small amount of
  365. memory, but in the long run the process can reach a considerable size.
  366. * [NEW] Sentinel: ability to announce itself with an arbitrary IP/port to work
  367. in the context of natted networks. However this is probably still
  368. not enough since there is no equivalent mechanism for slaves listed
  369. in the master INFO output. (Dara Kong and Salvatore Sanfilippo)
  370. --[ Redis 3.0.0 Beta 8 (version 2.9.57) ] Release date: 29 jul 2014
  371. This is the 8th beta of Redis 3.0.0.
  372. >> General changes
  373. * [FIX] Solaris compilation issues. (Matt Stancliff, Salvatore Sanfilippo)
  374. * [FIX] Allow shared integer objects if maxmemory policy is not LRU based.
  375. (Salvatore Sanfilippo)
  376. * [FIX] PFSELFTEST: less false positives. (Salvatore Sanfilippo)
  377. * [FIX] Fail SYNC if background save child aborted due to a signal. (Yossi
  378. Gottlieb)
  379. * [NEW] Latency framework backported from unstable branch. (Salvatore
  380. Sanfilippo)
  381. * [NEW] AOF rewrite improved for latency. (Salvatore Sanfilippo)
  382. * [NEW] Pub/Sub PING. (Salvatore Sanfilippo)
  383. * [NEW] Much faster ZUNIONSTORE. (Kyle Hubert, Salvatore Sanfilippo)
  384. * [NEW] Faster ll2string() implementation. (Salvatore Sanfilippo)
  385. >> Cluster changes
  386. * [FIX] CLUSTER RESET: Flush slave dataset on reset. (Salvatore Sanfilippo)
  387. * [FIX] Replica migration: don't migrate to masters that never had slaves
  388. in the past, but only to masters that remained orphaned after
  389. failure events. (Salvatore Sanfilippo)
  390. * [NEW] redis-trib: allow to reshard in non-interactive way. (Salvatore
  391. Sanfilippo)
  392. * [NEW] Cluster test: unit 04, check consistency during resharding. (Salvatore
  393. Sanfilippo)
  394. * [NEW] Cluster test: unit 05, slave selection. (Salvatore Sanfilippo)
  395. * [NEW] Cluster test: unit 06, slaves with stale data can't failover. (Salvatore
  396. Sanfilippo)
  397. * [NEW] Cluster test: unit 07, replicas migration. (Salvatore Sanfilippo)
  398. >> Sentinel changes
  399. * No Sentinel changes in this release.
  400. --[ Redis 3.0.0 Beta 7 (version 2.9.56) ] Release date: 30 jun 2014
  401. This is the 7th beta of Redis 3.0.0.
  402. >> General changes
  403. * [FIX] Scripting fixes backported from unstable, see Redis 2.8.12 changelog
  404. for more info. (Salvatore Sanfilippo)
  405. * [FIX] Cancel SHUTDOWN if initial AOF is being written. (Matt Stancliff)
  406. * [NEW] New command: COMMAND, for commands introspection (Matt Stancliff &
  407. Salvatore Sanfilippo)
  408. * [NEW] hiredis: Update to latest version. (Matt Stancliff)
  409. * [NEW] Jemalloc updated to 3.6.0. (Salvatore Sanfilippo)
  410. >> Cluster changes
  411. * [FIX] Cluster: clear NOADDR flag when updating node address.
  412. (Salvatore Sanfilippo)
  413. * [NEW] New CLUSTER SLOTS command to simplify Cluster clients operations.
  414. (Matt Stancliff)
  415. * [NEW] More Cluster tests. (Salvatore Sanfilippo)
  416. * [NEW] Log when failover authorization are granted / denied.
  417. (Salvatore Sanfilippo)
  418. >> Sentinel changes
  419. * [FIX] A few Sentinel bugs fixed and improvements, see Redis 2.8.12
  420. changelog for more info. (Salvatore Sanfilippo & Matt Stancliff)
  421. * [NEW] New Sentinel-Client handshake protocol, ROLE command, CLIENT KILL,
  422. all backported to 3.0 branch. (Salvatore Sanfilippo)
  423. --[ Redis 3.0.0 Beta 6 (version 2.9.55) ] Release date: 9 jun 2014
  424. This is the 6th beta of Redis 3.0.0.
  425. >> General changes
  426. * [FIX] Fix software watchdog signal handler crash due to re-entering.
  427. * [FIX] Better Lua number -> string conversion for Lua scripts.
  428. * [FIX] Serious replication bug when min-slaves-* feature is used in slaves
  429. configuration fixed.
  430. * [FIX] Blocking pop on lists now works when the list is created by commands
  431. other than *PUSH* (for example SORT STORE).
  432. >> Cluster changes
  433. * [FIX] CRITICAL: For a bug in the implementation of CLUSTER SET-CONFIG-EPOCH
  434. introduced with beta-3 (especially beta-4 where the command
  435. is actually used by redis-trib), a configEpoch for a node could
  436. jump backward, breaking the eventual consistency property of the
  437. slots -> nodes mapping in the cluster.
  438. >> Sentinel changes
  439. * No changes for Sentinel in this release.
  440. --[ Redis 3.0.0 Beta 5 (version 2.9.54) ] Release date: 26 may 2014
  441. This is the 5th beta of Redis 3.0.0. It does not include any real
  442. worthwhile change (just three days passed since the previous beta), but
  443. fixes two stupid bugs preventing cluster tests to pass.
  444. --[ Redis 3.0.0 Beta 4 (version 2.9.53) ] Release date: 23 may 2014
  445. This is the fourth beta of Redis 3.0.0.
  446. >> General changes
  447. * [NEW] Scripting engine performances improvements.
  448. * [NEW] Log format slightly changed to report current node role.
  449. * [FIX] Correct the HyperLogLog stale cache flag to prevent unnecessary
  450. computation.
  451. >> Cluster changes
  452. * [NEW] redis-trib: ability to import data from standalone Redis instances.
  453. * [NEW] redis-trib: "fix" subcommand much better at fixing errors.
  454. * [NEW] CLUSTER FAILOVER FORCE implemented.
  455. * [NEW] CLUSTER RESET implemented, it is now possible to completely reset
  456. nodes and create a new cluster without restarting anything.
  457. * [NEW] Slave validity factor (max estimated data age to still failover)
  458. is now under the control of the user, and can be configured via
  459. redis.conf or CONFIG SET. Option name cluster-slave-validity-factor.
  460. * [NEW] Cluster test: failure detection and failover initial tests.
  461. * [NEW] CLUSTER MEET: better error messages when address is invalid.
  462. * [NEW] Bulk-accept new Cluster nodes in the Cluster bus instead of
  463. performing just a single accept() per event fired.
  464. * [FIX] Bypass data_age check for manual failovers.
  465. * [FIX] Fixed data_age computation / check integer overflow.
  466. * [FIX] Various fixes to Tcl client.tcl Redis Cluster client used in tests.
  467. * [FIX] Better handling of stolen slots.
  468. * [FIX] Don't accept cluster bus connections during startup.
  469. >> Sentinel changes
  470. * [NEW] Generate +config-update-from event when a new config is received.
  471. * [NEW] Log when a failover will be re-attempted again.
  472. * [FIX] Sentinel: Add "dir /tmp" directive in example sentinel.conf.
  473. --[ Redis 3.0.0 Beta 3 (version 2.9.52) ] Release date: 5 may 2014
  474. This is the third beta of Redis 3.0.0.
  475. >> General changes
  476. * [NEW] New data structure: the HyperLogLog (see 2.8 release notes).
  477. * [NEW] Lexicograhical range queries in sorted sets (see 2.8 release notes).
  478. * [NEW] LRU algorithm precision greatly improved.
  479. * [FIX] Redis is now much more responsive to reply with LOADING / BUSY errors.
  480. >> Cluster changes
  481. * [NEW] Cluster testing framework and initial tests.
  482. * [NEW] Cluster epochs collision resolution (make Redis Cluster more resilient
  483. to admin and programming errors).
  484. * [NEW] Persist / fsync some global state to ensure correct crash-recovery
  485. semantics.
  486. * [NEW] New command introduced: CLUSTER SET-CONFIG-EPOCH, still not used
  487. by redis-trib. Will be used to speedup the assignment of unique
  488. epochs to different nodes at cluster creation time. For now this is
  489. handled as a side effect of the cluster epochs collision resolution.
  490. * [FIX] Different fixes to redis-trib cluster creation.
  491. * [FIX] Fix an error in the CLUSTER NODES output for nodes slots.
  492. >> Sentinel changes
  493. * [NEW] Sentinels are now able to send update messages in a peer-to-peer
  494. fashion even if no Redis instances are available. Now the Sentinel
  495. liveness property that the most updated configuration in a given
  496. partition is propagated to all the Sentinels is extended to partitions
  497. without reachable instances.
  498. * [NEW] Sentinel safety properties are now ensured in a crash-recovery system
  499. model since some state is persisted on disk before replying to other
  500. nodes, and reloaded at startup.
  501. * [NEW] Sentinel now uses CLIENT SETNAME so that it is easy to identify
  502. Sentinels using CLIENT LIST among other clients.
  503. * [NEW] Sentinel failure detection and reconnection code improved.
  504. --[ Redis 3.0.0 Beta 2 (version 2.9.51) ] Release date: 11 mar 2014
  505. This is the second beta of Redis 3.0.0.
  506. >> General changes
  507. * [FIX] Sometimes the absolute config file path was obtained in a wrong way.
  508. This happened when there was a "dir" directive inside the config file
  509. and at the same time the configuration file was given as a relative
  510. path to redis-server or redis-sentinel executables.
  511. * [FIX] redis-cli: Automatically enter --slave mode when SYNC or PSYNC are
  512. called during an interactive session.
  513. * [FIX] BITCOUNT: fixed unaligned access causing issues in sparc and other
  514. archs not capable of dealing with unaligned accesses. This also makes
  515. the code faster in archs where unaligned accesses are allowed.
  516. * [FIX] Force INFO used_memory_peak to match peak memory. This generated some
  517. confusion among users even if it was not an actual bug.
  518. * [FIX] Fixed an critical EVALSHA script cache bug: scripts executed may not
  519. propagate to AOF / Slaves correctly under certain conditions.
  520. See issue #1549 at Github for more information.
  521. * [FIX] Fixed multiple bugs resulting into closing the link with master or slave
  522. during replication without good reasons. This will result in useless
  523. resynchronizations, or infinite loops where the replication link can't
  524. be established.
  525. * [FIX] Don't count the time needed to populate the buffers of clients waiting
  526. in MONITOR mode when populating the Slow Log entries.
  527. * [NEW] Redis-cli updated to use SCAN instead of random sampling via
  528. RANDOMKEY in order to implement --bigkeys feature. Moreover the
  529. implementation now supports pipelining and reports more information
  530. at the end of the scan. Much faster, much better. A special thank
  531. you to Michael Grunder for this improvement.
  532. * [NEW] redis-cli now supports a new --intrinsic-latency mode that is able
  533. to meter the latency of a system due to kernel / hypervisor.
  534. How to use it is explained at http://redis.io/topics/latency.
  535. * [NEW] New command BITPOS: find first bit set or clear in a bitmap.
  536. * [NEW] CONFIG REWRITE calls are now logged.
  537. * [NEW] AOF write errors (like no space on device) no longer abort Redis if the
  538. fsync policy is none or every second. The database enters a read-only
  539. mode where every write is refused with an error. Normal operations are
  540. restored as soon as Redis is able to append again data to the AOF file.
  541. * [NEW] Sentinel now accepts SHUTDOWN command.
  542. >> Cluster changes
  543. * [FIX] Bind the first interface listed in the "bind" configuration directive
  544. if any, in order to perform outgoing connections. This fixes Cluster
  545. usage when an address is bound but there are multiple interfaces that
  546. may be used to connect with other nodes.
  547. * [FIX] When an "Importing" slot is closed via CLUSTER SETSLOT NODE ...
  548. increment the configEpoch in the special case it is zero.
  549. * [FIX] Current transaction is invalidated on redirection errors.
  550. * [FIX] Abort if port does not allow for a valid cluster bus port that is
  551. always at fixed +10000 offset.
  552. * [FIX] Keys extraction algorithm fixed for ZUNIONSTORE/ZINTERSTORE and SORT.
  553. * [FIX] Better failover timeout and retry times: failover should now work
  554. reliabily when node-timeout is very small (a few milliseconds).
  555. * [FIX] Don't allow SORT GET/BY options in Cluster mode.
  556. * [FIX] Clear importing/migrating state when turning from master to slave role.
  557. * [FIX] Set slot error if we receive an update for a busy slot.
  558. * [FIX] Update node configEpoch on UPDATE messages.
  559. * [NEW] Support multi-key operations as long as keys resolve to the same
  560. hash slot, and the slot is not migrating, or it is migrating but all
  561. the mentioned keys are available.
  562. * [NEW] New DEBUG command CMDKEYS available to debug / test keys identification
  563. in Redis commands.
  564. * [NEW] redis-trib: create subcommand is now able to assign spare slaves.
  565. * [NEW] redis-trib: new subcommand 'call'. Exec command in all nodes.
  566. >> Sentinel changes
  567. * [FIX] Sentinel "IDONTKNOW" error removed as it does not made sense with the
  568. new Sentinel design. This error was actually a fix for a design error
  569. in the first implementation of Sentinel.
  570. * [FIX] Sentinel: added a missing exit() call to abort after config file
  571. checks at startup. This error was introduced with an improvement in
  572. a previous 2.8 release.
  573. * [FIX] Sentinel: better nodes fail over start time desynchronization to avoid
  574. split-brain during the voting process needed to get authorization to
  575. fail over. This means the system is less likely to need to retry
  576. and will fail over faster. No changes in behavior / correctness.
  577. * [NEW] Sentinel unit tests and framework. More tests needed and units must
  578. be improved in order to have less false positives, but it is a start
  579. and features a debugging console that is useful to fix tests or to
  580. inspect bugs causing tests failures.
  581. * [NEW] New Sentinel events: +/-monitor and +set used to monitor when an
  582. instance to monitor is added or removed, or when a configuration
  583. is modified via SENTINEL SET.
  584. --[ Redis 3.0.0 Beta 1 (version 2.9.50) ] Release date: 11 Feb 2014
  585. This is the first beta of Redis 3.0.0.
  586. Migrating from 2.8 to 3.0
  587. =========================
  588. Redis 2.8 is mostly a strict subset of 3.0, you should not have any problem
  589. upgrading your application from 2.8 to 3.0. However this is a list of small
  590. non-backward compatible changes introduced in the 3.0 release:
  591. * The log format was modified. The prefix of each line included the pid
  592. in the following format [1234]. Now instead it is 1234:? Where
  593. '?' is actually the role of the instance. M for master, S for slave, C
  594. if this process is a saving child (for RDB/AOF), and X for Sentinel.
  595. * The default maxmemory policy in Redis 3.0 is no longer "volatile-lru" as
  596. it used to be in 2.8, but "noeviction". The policies behavior is the same
  597. (but LRU eviction is much more precise in 3.0), so only the default value
  598. changed. Just make sure to specify in your redis.conf what you mean.
  599. --------------------------------------------------------------------------------
  600. Credits: Where not specified the implementation and design is done by
  601. Salvatore Sanfilippo. Thanks to Pivotal for making all this possible.
  602. Also many thanks to all the other contributors and the amazing community
  603. we have.
  604. See commit messages for more credits.
  605. Cheers,
  606. Salvatore