-
Notifications
You must be signed in to change notification settings - Fork 616
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
Add default wait timeout for attachments from ACS #3914
Conversation
48a9fa3
to
4b163c3
Compare
1802ee7
to
f9c4128
Compare
@@ -194,7 +205,7 @@ func validateAttachmentAndReturnProperties(message *ecsacs.ConfirmAttachmentMess | |||
return attachmentProperties, nil | |||
} | |||
|
|||
// For "EphemeralStorage" and "ElasticBlockStorage", ACS is using resourceType to indicate its attachment type. | |||
// For legacy EBS volumes("EphemeralStorage" and "ElasticBlockStorage"), ACS is using resourceType to indicate its attachment type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: For my understanding, is it appropriate referring to these storage means as legacy? Are we planning to deprecate them at any point already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we planning to deprecate them at any point already?
I don't think so. I think we will continue to support both but won't change them much.
I will confirm with @fierlion since this comment is from this PR https://github.com/aws/amazon-ecs-agent/pull/3911/files/9597f968e447852d88a3fb7d75a7a550fba24ffb#r1327869451
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non-blocking: My comment's intent was to remove the words EphemeralStorage altogether. This is a nit but we should follow up and fix this comment.
Summary
Add a default wait timeout for handling attachment payload message from ACS if no waitTimeout is provided in the message. This can protect Agent from waiting for the attachment ready forever.
Implementation details
Add a the default wait timeout in
attachment_resource_responder
when processing the attachment payload message.Testing
New tests cover the changes: no
Description for the changelog
Enhancement - add a default wait timeout for attachment payload messages.
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.