From a910a220e8e9a81584a50cf35c5df8737574ca9c Mon Sep 17 00:00:00 2001 From: Dmitriy Koltsov Date: Tue, 9 Apr 2024 13:16:54 +0300 Subject: [PATCH] fix(member.unpack): fix payload position (#62) Commit 7021e9f9209645d684b2cfcda9d63226cc1c7068 refactored members.unpack function but introduced a typo with the position of the payload in the array that forced payload to be ignored. Such bug broke anti_entropy step, forcing incarnation to be updated and payload to be ignored, making instances view of each other inconsistent. Closes #61 --- CHANGELOG.md | 4 ++++ membership/members.lua | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca0cda1..2447d5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + + - Invalid payload parsing in anti entropy step. + ## [2.4.3] - 2024-01-29 ### Fixed diff --git a/membership/members.lua b/membership/members.lua index 43b520e..2234723 100644 --- a/membership/members.lua +++ b/membership/members.lua @@ -55,7 +55,7 @@ end function members.unpack(member) checks('table') - local payload = member[3] + local payload = member[4] if payload == msgpack.NULL or type(payload) ~= 'table' then