Redis 7.0 RC2 释出报告¶
Redis 核心团队最近释出了 7.0 版本的第 2 个 RC ,并在释出报告中罗列了该版本的变化,本文是该报告的中文翻译。
可能会破环兼容的修改¶
性能和资源利用改进¶
INFO 字段以及内省修改¶
模块 API 修改¶
- Add
RM_SetCommandInfo
API to set command metadata for the newCOMMAND
introspection features and ACL key permissions (#10108) - Add
RM_KeyAtPosWithFlags
andRM_GetCommandKeysWithFlags APIs
(#10237) - Add
getchannels-api
command flag andRM_IsChannelsPositionRequest
,RM_ChannelAtPosWithFlags APIs
(#10299) - Change
RM_ACLCheckChannelPermissions
andRM_ACLCheckKeyPermissions APIs
(released in RC1) to take different flags (#10299) - Fix
RM_SetModuleOptions
flag collision. Bug in 7.0 RC1 header file, modules that usedOPTIONS_HANDLE_REPL_ASYNC_LOAD
will mess up key invalidations (#10284)
BUG 修复¶
- Modules: Fix thread safety violation when a module thread adds an error reply, broken in 6.2 (#10278)
- Lua: Fix Eval scripts active defrag, broken 7.0 in RC1 (#10271)
- Fix geo search bounding box check causing missing results (#10018)
- Lua: Add checks for
min-slave-*
configs when evaluating Lua scripts and Functions (#10160) - Modules: Prevent crashes and memory leaks when
MODULE UNLOAD
is used on module with a pending timer (#10187) - Fix error stats and failed command stats for blocked clients (#10309)
- Lua/Modules: Fix missing and duplicate error stats for scripts and modules (#10329, #10278)
- Check target node is a primary during
CLUSTER SETSLOT
(#10277) - Fix key deletion not to invalidate
WATCH
when used on a logically expired key (#10256) - Sentinel: return an error if configuration save fails (#10151)
- Sentinel: fix a free-after-use issue re-registering Sentinels (#10333)
干杯,
Redis 核心团队