Skip to content

Commit

Permalink
Mark expelled instances as left
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Dec 19, 2024
1 parent 7046671 commit 9dee099
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ and this project adheres to
Unreleased
-------------------------------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Expelled instances are now marked as ``left`` in ``membership``.

-------------------------------------------------------------------------------
[2.13.0] - 2024-11-28
-------------------------------------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions cartridge/confapplier.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ local membership = require('membership')
local uri_tools = require('uri')
local socket = require('socket')
local json = require('json')
local membership = require('membership')

local vars = require('cartridge.vars').new('cartridge.confapplier')
local pool = require('cartridge.pool')
Expand Down Expand Up @@ -292,6 +293,7 @@ local function apply_config(clusterwide_config)
if failover.is_leader() then
for _, uuid, _ in fun.filter(topology.expelled, topology_cfg.servers) do
box.space._cluster.index.uuid:delete(uuid)
membership.mark_left(topology_cfg.servers[uuid].uri)
end
end

Expand Down

0 comments on commit 9dee099

Please sign in to comment.