Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw an error when using Tarantool 3 #2130

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Changed

- Don't perform invalid format check in Tarantool 2.10.4 and above.

- Throw an error when using Tarantool 3.

-------------------------------------------------------------------------------
[2.8.1] - 2023-07-20
-------------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions cartridge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -317,6 +318,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.enable_sychro_mode ~= nil then
opts.enable_synchro_mode = opts.enable_sychro_mode
log.warn('enable_sychro_mode is deprecated. Use enable_synchro_mode instead')
Expand Down