Skip to content

RuntimeError in valkey.asyncio.cluster.NodesManager.initialize() #181

Closed
@jakob-keller

Description

@jakob-keller

I've noticed RuntimeError: dictionary changed size during iteration being raised in valkey.asyncio.cluster.NodesManager.initialize()

for startup_node in self.startup_nodes.values():

I believe this can be triggered during error handling in:

self.nodes_manager.startup_nodes.pop(target_node.name, None)

A quick fix might be to wrap self.startup_nodes.values() in a tuple.

Should I prepare a PR?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions