Skip to content

Infinite loop when serializing feature flags #3862

@cmanallen

Description

@cmanallen

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.18

Steps to Reproduce

from sentry_sdk._lru_cache import LRUCache

cache = LRUCache(3)
cache.set(0, 0)

copied = copy(cache)
copied.set(2, 2)
cache.get_all()  # spins forever

Expected Result

The loop breaks and flags are returned.

Actual Result

Infinite loop.

Metadata

Metadata

Assignees

Labels

No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions