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

[YUNIKORN-499] race condition in sorting apps #234

Merged
merged 1 commit into from Jan 6, 2021

Conversation

wilfred-s
Copy link
Contributor

While sorting applications the pending resources of an application are
accessed. This could happen while a different routine is updating the
pending resources when a Ask is modified.
Replace the pending resource object instead of cloning on retrieval as it
is faster.

While sorting applications the pending resources of an application are
accessed. This could happen while a different routine is updating the
pending resources when a Ask is modified.
Replace the pending resource object instead of cloning on retrieval as it
is faster.
@wilfred-s wilfred-s self-assigned this Jan 6, 2021
@codecov
Copy link

codecov bot commented Jan 6, 2021

Codecov Report

Merging #234 (bc649f1) into master (5471d84) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #234   +/-   ##
=======================================
  Coverage   64.02%   64.02%           
=======================================
  Files          60       60           
  Lines        4984     4984           
=======================================
  Hits         3191     3191           
  Misses       1636     1636           
  Partials      157      157           
Impacted Files Coverage Δ
pkg/scheduler/objects/application.go 55.30% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5471d84...bc649f1. Read the comment docs.

Copy link
Contributor

@yangwwei yangwwei left a comment

Choose a reason for hiding this comment

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

+1, thanks for the quick fix @wilfred-s

@yangwwei yangwwei merged commit dcf631d into apache:master Jan 6, 2021
@yangwwei yangwwei added this to the 0.10.0 milestone Jan 6, 2021
@wilfred-s wilfred-s deleted the yunikorn-499 branch February 1, 2021 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants