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: Store object in map on object termination and fix resource leak #112

Merged

Conversation

jonathan-innis
Copy link
Contributor

@jonathan-innis jonathan-innis commented Dec 4, 2024

Issue #, if available:

Description of changes:

Store object in map during object termination. Because we were not storing the older version of the object, we were not able to get additional properties from the object during object termination. This fixes the code so that we store the object and can grab additional properties.

Note: This also fixes a resource leak that was introduced with the terminatingObjects map

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@jonathan-innis jonathan-innis requested a review from a team as a code owner December 4, 2024 21:44
@jonathan-innis jonathan-innis force-pushed the store-obj-on-termination branch from c47968a to 533cef7 Compare December 4, 2024 21:52
@jonathan-innis jonathan-innis enabled auto-merge (squash) December 4, 2024 21:53
@jonathan-innis jonathan-innis changed the title fix: Store object in map on object termination fix: Store object in map on object termination and fix resource leak Dec 4, 2024
Copy link

@rschalo rschalo left a comment

Choose a reason for hiding this comment

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

lgtm

@jonathan-innis jonathan-innis merged commit cc7010c into awslabs:main Dec 4, 2024
1 check 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.

2 participants