Skip to content

Commit

Permalink
test: fix setup with master vshard
Browse files Browse the repository at this point in the history
Since commit [1], it is forbidden to call box.cfg as a part of
vshard.router.cfg: it is expected that user will separate their
setups. This patch should satisfy both older and newer vshard versions.

1. tarantool/vshard@bc1c3c4
  • Loading branch information
psergee committed Dec 12, 2023
1 parent eaccb11 commit 99faa81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion test/integration/running/cluster_crud_app/localcfg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ return {
},
}, -- replicaset #2
}, -- sharding
replication_connect_quorum = 0,
discovery_mode = 'off',
}
10 changes: 7 additions & 3 deletions test/integration/running/cluster_crud_app/router.lua
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
-- This is a router listening network socket.

local cfg = require('localcfg')
cfg.discovery_mode = 'off'
local vshard = require('vshard')

-- Start the database with sharding
local vshard = require('vshard')
box.cfg{
listen = 3300,
replication_connect_quorum = 0,
}

local cfg = require('localcfg')
vshard.router.cfg(cfg)
vshard.router.bootstrap()

Expand Down

0 comments on commit 99faa81

Please sign in to comment.