-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Logs: harden dict view iterations #13272
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 53m 43s ⏱️ - 1h 7m 10s Results for commit f49043e. ± Comparison against base commit 395f363. This pull request removes 2801 tests. |
Test Results (amd64) - Integration, Bootstrap 5 files ± 0 5 suites ±0 1h 17m 4s ⏱️ - 1h 24m 15s Results for commit f49043e. ± Comparison against base commit 395f363. This pull request removes 3151 tests. |
pinzon
left a comment
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.
LGTM
Motivation
The following issue came up when looking in telemetry for issues with the new Batch service. Batch provider calls the DescribeLogGroups API when creating a new task.
The error occurs because the dictionary region_backend.groups is being modified by another thread while
copy.deepcopy()is trying to iterate over it. This is a classic race condition where concurrent modifications to the dictionary cause the "dictionary changed size during iteration" error.Changes