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

FOR TEST POC evict index partitions #6941

Closed
wants to merge 1 commit into from

Conversation

zkillingjar
Copy link
Contributor

No description provided.

@@ -164,6 +164,9 @@
* reservation is released. */
private volatile boolean delayedRenting;

/** Set if partition is requested for exclusive evict. */
private volatile boolean exclClear;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's rename it to the exclPurge.

* @param fut Future to listen for completion of a larger clear procedure.
* @return {@code true} if successfully initialized, otherwise a retry is required.
*/
public boolean exclusiveClearAsync(IgniteInternalFuture<Void> fut) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Who protect this method in case of concurrent invocation?

@nizhikov
Copy link
Contributor

@zkillingjar

We haveGridDhtLocalPartition#exclClear flag and GridDhtLocalPartition#clearFut which seems to be the same.

Seems, we should encapsulate exclClear flag to the clearFut.

@nizhikov
Copy link
Contributor

We have to ensure consistent naming in PR.
I think purge or partClear is OK.
sweep, clear and other prefixes that are used through PR should be renamed.

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.

None yet

2 participants