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

Fix size based eviction when cluster scaled down #18871

Merged
merged 1 commit into from Jun 17, 2021

Conversation

ahmetmircik
Copy link
Member

@ahmetmircik ahmetmircik commented Jun 9, 2021

closes #14046

Modification:
Main changes are in replication operation. In this operation, before putting entries into record-store, we first calculate ownedEntryCountOnThisNode. If this value is below the per-node max-size, we put entries till we reach the max-size. After reaching it, we quit putting entries.

This is an approximation approach. Base on my tests it is working and keeps per-node map-size around set value.

Forward-port: #18873

@ahmetmircik ahmetmircik added Type: Defect Source: Community PR or issue was opened by a community user Module: IMap labels Jun 9, 2021
@ahmetmircik ahmetmircik added this to the 4.1.4 milestone Jun 9, 2021
@ahmetmircik ahmetmircik changed the title [WIP] Fix size based eviction when cluster scaled down Fix size based eviction when cluster scaled down Jun 14, 2021
@ahmetmircik ahmetmircik marked this pull request as ready for review June 14, 2021 08:39
@mmedenjak mmedenjak added Team: Core Source: Internal PR or issue was opened by an employee and removed Source: Community PR or issue was opened by a community user labels Jun 15, 2021
@blazember blazember self-requested a review June 15, 2021 12:55
@mmedenjak mmedenjak self-requested a review June 15, 2021 12:57
Copy link
Contributor

@mmedenjak mmedenjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just some clarification

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2008-2021, Hazelcast, Inc. All Rights Reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come? :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always asking myself that.

@ahmetmircik ahmetmircik merged commit 5328104 into hazelcast:4.1.z Jun 17, 2021
@ahmetmircik ahmetmircik deleted the fix/4.1/migrationEviction branch June 17, 2021 11:39
@mmedenjak mmedenjak removed the request for review from vbekiaris June 17, 2021 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants