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

Update speculative flag in NodeLease for running tasks #19093

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

losipiuk
Copy link
Member

Description

We need to updated speculative flag in NodeLease objects which were
already acquired. Flag impacts logic in BinPackingNodeAllocator.
Without this change task which got its node while it was
speculative still counted as speculative from NodeAllocator perspective
even if it was already sealed.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

Copy link
Member

@linzebing linzebing left a comment

Choose a reason for hiding this comment

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

Should we switch the commit order?

node = Futures.getDone(nodeLease.getNode());
}
catch (ExecutionException e) {
throw new UncheckedExecutionException(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a message to make it obvious that the nodeLease is expected to be "done" here

@losipiuk
Copy link
Member Author

Should we switch the commit order?

No, this is fine. The commits are not strictly related.

We need to updated speculative flag in NodeLease objects which were
already acquired. Flag impacts logic in BinPackingNodeAllocator.
Without this change task which got its node while it was
speculative still counted as speculative from NodeAllocator perspective
even if it was already sealed.
@losipiuk losipiuk force-pushed the lo/set-spec-running-tasks branch from 63dcce6 to 73ed299 Compare September 19, 2023 15:25
@losipiuk losipiuk merged commit 769315d into trinodb:master Sep 19, 2023
@github-actions github-actions bot added this to the 427 milestone Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants