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

Adds ProgressEvent. #1305

Merged
merged 2 commits into from
Dec 5, 2018
Merged

Adds ProgressEvent. #1305

merged 2 commits into from
Dec 5, 2018

Conversation

coollog
Copy link
Contributor

@coollog coollog commented Dec 5, 2018

Part of #1297

Represents a JibEvent indicating progress on some Allocation.

@coollog coollog requested a review from a team December 5, 2018 17:21
Copy link
Member

@chanseokoh chanseokoh left a comment

Choose a reason for hiding this comment

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

LGTM, just some comments.

updateCompletionMap(allocation, units);
}

private void updateCompletionMap(Allocation allocation, long units) {
Copy link
Member

Choose a reason for hiding this comment

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

Just saying, I guess we need to think a bit more about this in a concurrent environment, but this works in tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, in a concurrent environment this would need to synchronize at the get-and-increment level.

@coollog coollog requested a review from a team December 5, 2018 18:47
@coollog coollog merged commit ac22ab8 into master Dec 5, 2018
@coollog coollog deleted the progress-3-event branch December 5, 2018 19:37
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.

3 participants