Skip to content

Micrometer timer leak when dataloader returns empty map #1448

@ragnaroh-nrk

Description

@ragnaroh-nrk

When registering a dataloader through BatchLoaderRegistry and returning an empty map from the function passed to registerMappedBatchLoader, the Micrometer timer that is started before loading the query result is never stopped. The same issue occurs when returning a Map with null values.

See this repo for a reproducible example: https://github.com/ragnaroh-nrk/spring-graphql-timer-leak-demo

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions