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: avoid daemon start hang when one shim hang #2666

Merged
merged 1 commit into from
Jan 15, 2019
Merged

fix: avoid daemon start hang when one shim hang #2666

merged 1 commit into from
Jan 15, 2019

Conversation

Ace-Tang
Copy link
Contributor

if one containerd-shim hang, pouch daemon start will hang since
it will stuck in shim, then pouch daemon can never start

Signed-off-by: Ace-Tang aceapril@126.com

Ⅰ. Describe what this PR did

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov
Copy link

codecov bot commented Jan 15, 2019

Codecov Report

Merging #2666 into master will decrease coverage by 0.05%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2666      +/-   ##
==========================================
- Coverage   69.72%   69.66%   -0.06%     
==========================================
  Files         281      281              
  Lines       18699    18712      +13     
==========================================
- Hits        13037    13035       -2     
- Misses       4213     4230      +17     
+ Partials     1449     1447       -2
Flag Coverage Δ
#criv1alpha1test 31.81% <0%> (+0.08%) ⬆️
#criv1alpha2test 36.03% <0%> (-0.06%) ⬇️
#integrationtest 42.09% <0%> (-0.04%) ⬇️
#nodee2etest 32.5% <0%> (-0.04%) ⬇️
#unittest 27.2% <0%> (-0.03%) ⬇️
Impacted Files Coverage Δ
ctrd/container.go 57.41% <0%> (-1.08%) ⬇️
cri/stream/portforward/httpstream.go 70.94% <0%> (-6.84%) ⬇️
cri/stream/runtime.go 67.85% <0%> (-2.39%) ⬇️
daemon/mgr/container.go 59% <0%> (ø) ⬆️
cri/v1alpha2/cri.go 69.52% <0%> (ø) ⬆️
cri/v1alpha1/cri.go 60.09% <0%> (+0.66%) ⬆️
apis/server/utils.go 75% <0%> (+3.84%) ⬆️

@pouchrobot pouchrobot added kind/bug This is bug report for project size/S labels Jan 15, 2019

select {
case <-time.After(timeout):
return errors.Wrap(errtypes.ErrTimeout, "connecting to shim")
Copy link
Collaborator

Choose a reason for hiding this comment

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

return errors.Wrap(errtypes.ErrTimeout, "failed to connect shim") ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updaed

@rudyfly
Copy link
Collaborator

rudyfly commented Jan 15, 2019

LGTM, wait ci pass

@pouchrobot pouchrobot added the LGTM one maintainer or community participant agrees to merge the pull reuqest. label Jan 15, 2019
if one containerd-shim hang, pouch daemon start will hang since
it will stuck in shim, then pouch daemon can never start

Signed-off-by: Ace-Tang <aceapril@126.com>
Copy link
Contributor

@zhuangqh zhuangqh left a comment

Choose a reason for hiding this comment

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

LGTM

@HusterWan
Copy link
Contributor

LGTM

@HusterWan HusterWan merged commit 544ce86 into AliyunContainerService:master Jan 15, 2019
@Ace-Tang Ace-Tang deleted the avoid_start_hang branch January 15, 2019 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug This is bug report for project LGTM one maintainer or community participant agrees to merge the pull reuqest. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants