Skip to content

ZOOKEEPER-4837: Network issue causes ephemeral node unremoved after t…#2172

Open
dParikesit wants to merge 2 commits intoapache:masterfrom
dParikesit:ZOOKEEPER-4837
Open

ZOOKEEPER-4837: Network issue causes ephemeral node unremoved after t…#2172
dParikesit wants to merge 2 commits intoapache:masterfrom
dParikesit:ZOOKEEPER-4837

Conversation

@dParikesit
Copy link

…he session expiration

The core part of this fix is

// if this snapshot has a higher zxid than the checkpoint zxid, skip and continue to the previous snapshot
if (snapZxid > zxid) {
    continue;
}

However, the zxid must be propagated from tuncateLog(), which is why I added another loadDatabase, deserialize, and restore with zxid as its additional parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant