diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 05d536a88..c5f955574 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,12 @@ and this project adheres to Unreleased ------------------------------------------------------------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Changed +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Throw an error when using Tarantool 3. + ------------------------------------------------------------------------------- [2.8.1] - 2023-07-20 ------------------------------------------------------------------------------- diff --git a/cartridge.lua b/cartridge.lua index 93813c0c3..d4358267b 100644 --- a/cartridge.lua +++ b/cartridge.lua @@ -23,6 +23,7 @@ local http = require('http.server') local fiber = require('fiber') local socket = require('socket') local json = require('json') +local tarantool_version = require('tarantool').version local rpc = require('cartridge.rpc') local auth = require('cartridge.auth') @@ -316,6 +317,10 @@ local function cfg(opts, box_opts) disable_errstack = '?boolean', }, '?table') + if tarantool_version:sub(1, 2) == '3.' then + return nil, CartridgeCfgError:new("Unsupported Tarantool version " .. tarantool_version) + end + if opts.webui_blacklist ~= nil then local i = 0 for _, _ in pairs(opts.webui_blacklist) do