Skip to content

Fix cleanup error on content client test#3853

Merged
fuweid merged 1 commit intocontainerd:masterfrom
dmcgowan:fix-content-test-cleanup-race
Nov 27, 2019
Merged

Fix cleanup error on content client test#3853
fuweid merged 1 commit intocontainerd:masterfrom
dmcgowan:fix-content-test-cleanup-race

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

A race occurs today where the cleanup runs after the lease has been deleted, making all the content and statuses eligible for collection during the cleanup. There is a case where a status could be listed but removed before the abort is called. In this case, abort will return a not found and the test cleanup should ignore it.

A race occurs today where the cleanup runs after the lease
has been deleted, making all the content and statuses
eligible for collection during the cleanup. There is a case
where a status could be listed but removed before the
abort is called. In this case, abort will return a not found
and the test cleanup should ignore it.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci bot commented Nov 26, 2019

Build succeeded.

@codecov-io
Copy link
Copy Markdown

Codecov Report

Merging #3853 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3853      +/-   ##
==========================================
- Coverage   42.35%   42.34%   -0.02%     
==========================================
  Files         130      130              
  Lines       14683    14683              
==========================================
- Hits         6219     6217       -2     
- Misses       7539     7540       +1     
- Partials      925      926       +1
Flag Coverage Δ
#linux 45.76% <ø> (-0.02%) ⬇️
#windows 37.82% <ø> (ø) ⬆️
Impacted Files Coverage Δ
snapshots/btrfs/btrfs.go 57.39% <0%> (-0.9%) ⬇️

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 75a46ce...8da4346. Read the comment docs.

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

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

LGTM

@fuweid fuweid merged commit 3a31ce2 into containerd:master Nov 27, 2019
@dmcgowan dmcgowan deleted the fix-content-test-cleanup-race branch March 23, 2022 22:21
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.

5 participants