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 bug where the lock is never released for FSx task resource #4088

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

rawahars
Copy link
Contributor

@rawahars rawahars commented Feb 5, 2024

Summary

There is a typo/bug in the GetAppliedStatus method for FSx task resource wherein the lock is never released in the method. This will likely cause the agent to fail tasks with FSx volume since the lock on other methods will never be acquired.

Presently, this method is not invoked from any workflow and therefore, we have not seen any impact. Reference: https://github.com/search?q=repo%3Aaws%2Famazon-ecs-agent+path%3A%2F%5Eagent%5C%2F%2F+GetAppliedStatus&type=code

Implementation details

Changed RLock to RUnLock.

Testing

New tests cover the changes: NA

Description for the changelog

fix bug where the lock is never released for FSx task resource

Does this PR include breaking model changes? If so, Have you added transformation functions?

No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

There is a typo/bug in the `GetAppliedStatus` method for FSx task resource wherein the lock is never released in the method. This will likely cause the agent to fail tasks with FSx volume since the lock on other methods will never be acquired.

Presently, this method is not invoked from any workflow and therefore, we have not seen any impact.
@rawahars rawahars requested a review from a team as a code owner February 5, 2024 18:33
@arun-annamalai arun-annamalai merged commit 0f6fead into aws:dev Feb 6, 2024
36 checks passed
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