Skip to content

Metadata may contain java.util.Collections$EmptyMap types #98

@dgoeke

Description

@dgoeke

While writing some message retry logic, we discovered that it's not safe to perform operations like (update-in metadata [:headers :field-here] f) because when no headers are present, the field is a java.util.Collections$EmptyMap. This type isn't associative so clojure functions like assoc/update throw exceptions when dealing with it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions