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(executor):Failure node failed to get archived log #5671

Merged
merged 2 commits into from
Apr 13, 2021

Conversation

uucloud
Copy link
Contributor

@uucloud uucloud commented Apr 13, 2021

Checklist:

close #5669

@uucloud uucloud changed the title fix(executor):Failure node lost archivedlog fix(executor): Failure node lost archivedlog Apr 13, 2021
@uucloud uucloud changed the title fix(executor): Failure node lost archivedlog fix(executor):Failure node failed to get archived log Apr 13, 2021
@codecov
Copy link

codecov bot commented Apr 13, 2021

Codecov Report

Merging #5671 (28a30ff) into master (ded95bc) will increase coverage by 0.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5671      +/-   ##
==========================================
+ Coverage   47.05%   47.15%   +0.09%     
==========================================
  Files         240      240              
  Lines       15049    15056       +7     
==========================================
+ Hits         7082     7099      +17     
+ Misses       7062     7052      -10     
  Partials      905      905              
Impacted Files Coverage Δ
cmd/argoexec/commands/wait.go 0.00% <0.00%> (ø)
workflow/executor/executor.go 16.23% <0.00%> (-0.08%) ⬇️
cmd/argoexec/commands/emissary.go 48.43% <0.00%> (-1.57%) ⬇️
workflow/controller/operator.go 71.05% <0.00%> (+0.39%) ⬆️
cmd/argo/commands/get.go 56.95% <0.00%> (+0.64%) ⬆️
workflow/metrics/server.go 16.66% <0.00%> (+4.16%) ⬆️

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 ded95bc...28a30ff. Read the comment docs.

Signed-off-by: uucloud <uucloud@qq.com>
@@ -60,12 +60,14 @@ func waitContainer(ctx context.Context) error {
// Saving output parameters
err = wfExecutor.SaveParameters(ctx)
if err != nil {
wfExecutor.AnnotateOutputs(ctx, logArt)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need a slightly different approach here.

In each error branch of this func, we exit. Instead, we should just add wfExecutor.AddError. We do not need to exit until the end of the func, where we can exit with an error if there we any errors.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I modified the code until the func was executed to the end, and then checked for errors and exited, but I'm not sure if KillSidecars error should be checked as well?

Signed-off-by: uucloud <uucloud@qq.com>
@alexec alexec merged commit d5e492c into argoproj:master Apr 13, 2021
@alexec alexec added this to the v3.1 milestone Apr 13, 2021
@simster7 simster7 mentioned this pull request Apr 19, 2021
50 tasks
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.

Node lost outputs if waitContainer failed before AnnotateOutputs execute
2 participants