This repository was archived by the owner on Mar 23, 2026. It is now read-only.
Logs: harden dict view iterations#13272
Merged
nik-localstack merged 1 commit intomainfrom Oct 15, 2025
Merged
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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