Release: v. 2.5.1 Date: 2020-07-17 Tag: 2.5.1-1-g635f6e5
2.5.1 is the beta version of the 2.5 release series.
This release introduces roughly 11 features and resolves 34 bugs since the 2.4.1 version. There may be bugs in less common areas. If you find any, feel free to report an issue at GitHub.
Notable changes are:
- Synchronous replication (beta).
- Allow an anonymous replica follow another anonymous replica.
- Fixed numerous crashes in Vinyl.
- Make implicit cast rules for assignment operation more strict in SQL.
- Updated curl version to 7.71.
Tarantool 2.x is backward compatible with Tarantool 1.10.x in the binary data layout, client-server protocol, and replication protocol.
box.schema.upgrade() procedure to unlock all the new
features of the 2.x series.
There are changes labeled with [Breaking change]. It means that the old behavior was considered error-prone and therefore changed to protect users from unintended mistakes. However, there is a little probability that someone can lean on the old behavior, and this label is to bring attention to the things that have been changed.
- [Breaking change] box.session.push()
syncis deprecated and deleted. It does not work anymore, and a usage attempt leads to an error (gh-4689).
- [Breaking change] Define new rules for implicit cast for assignment operation in SQL (gh-3809). Read more: Implicit string/numeric cast.
- Symbols of the Tarantool executable are not masked anymore. Some
private symbols may become visible and available for FFI and
- Add ability to set up logging early without configuring the
- To retrieve information about memory usage, box.info.memory() can be used (gh-4688).
box.snapshot()now ignores throttling of the scheduler and forces the dump process immediately (gh-3519).
- Use naming pattern “COLUMN_N” for automatically generated column’s names (gh-3962). Read more: Select list.
- Add box.info.replication_anon().
When called, it lists anonymous
replicas in the same format as
box.info.replication, the only exception is that anonymous replicas are indexed by their uuid strings (gh-4900).
- Allow anonymous replicas to be followed by other ones (gh-4696).
- Synchronous replication
can be enabled per-space using the
is_syncspace option (gh-4842).
- Add initial support for OpenBSD (gh-4967).
Don’t start the ‘example’ instance after installing Tarantool (gh-4507).
Before this release, the Tarantool package for Debian and Ubuntu automatically enable and start the ‘example’ instance, which listens on the TCP port 3301. Starting from this release, the instance file is installed to
/etc/tarantool/instances.available/example.lua, but is not enabled by default and not started anymore. One may perform the following actions to enable and start it:
ln -s /etc/tarantool/instances.available/example.lua \ /etc/tarantool/instances.enabled/example.lua systemctl start tarantool@example
The existing configuration will not be updated automatically at package update, so manual actions are required to stop and disable the instance (if it is not needed, of course):
systemctl stop tarantool@example rm /etc/tarantool/instances.enabled/example.lua
When LTO is enabled, Luajit is built with it (gh-3743).
- Fixed assert outdated due to multikey index arrival (gh-5132).
- Fixed a bug in altering a normal index to a functional one (n/a).
- Fixed a couple of internal symbols dangling in global namespace _G (gh-4812).
- Fixed bug when on_shutdown triggers were not executed after EOF (gh-4703).
- Fixed inability to handle ULL constants in Lua mode console (gh-4682).
- Fixed a bug in C module reloading (gh-4945).
- Fixed confusing implicit requirements for tuple fields (gh-5027).
- Added needed key validation to space_before_replace (gh-5017).
- Fixed check of index field map size which led to crash (gh-5084).
- Fixed NULL pointer dereference when merger is called via the binary protocol (say, via net.box) (gh-4954).
- Fix wrong mpsgpack extension type in an error message at decoding (gh-5017).
- Fixed crash when invalid JSON was used in update() (gh-5135).
- Added format string usage to form a CustomError message (gh-4903). Read more: Custom error types.
- Fixed error while closing socket.tcp_server socket (gh-4087).
- Extended box.error objects reference counter to 64 bit to prevent possible overflow (gh-4902).
- Refactored Lua table encoding: removed excess Lua function object and
left protected Lua frame only for the case __serialize is a function
msgpack.encode()performance (no GH issue).
- Improved Lua call procedure for the case of built-in functions. Prepared GCfunc object is used instead of temporary one, resulting in 3-6% garbage collection reduction.
- Enabled luacheck in continuous integration (no GH issue).
- Fixed warnings (two of them were real bugs!) found by luacheck in a source code (no GH issue).
- Fixed wrong order of rows as a result of query containing column of SCALAR type in ORDER BY clause (gh-4697).
- Fixed bug with the display of collation for scalar fields in <SELECT>
sql_full_metadatais enabled (gh-4755).
- Block using HASH indexes in SQL since scheduler is unable to use it properly (gh-4659).
- Fixed races and corner cases in box (re)configuration (gh-4231).
- Fixed crash during compaction due to tuples with size exceeding vinyl_max_tuple_size setting (gh-4864).
- Fixed crash during recovery of vinyl index due to the lack of file descriptors (gh-4805).
- Fixed crash during executing upsert changing primary key in debug mode (gh-5005).
- Fixed crash due to triggered dump process during secondary index creation (gh-5042).
- Fixed crash/deadlock (depending on build type) during dump process scheduling and concurrent DDL operation (gh-4821).
- Fixed crash during read of prepared but still not yet not committed statement (gh-3395).
- Fixed squashing set and arithmetic upsert operations (gh-5106).
- Created missing folders for vinyl spaces and indexes if needed to avoid confusing fails of tarantool started from backup (gh-5090).
- Fixed crash during squash of many (more than 4000) upserts modifying the same key (gh-4957).
- Fixed concurrent replaces on index building. Tuples are now referenced on all needed execution paths (gh-4973).
- Fixed a possible stacked diagnostics crash due to incorrect reference count (gh-4887).