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
When registering a dataloader through
BatchLoaderRegistryand returning an empty map from the function passed toregisterMappedBatchLoader, the Micrometer timer that is started before loading the query result is never stopped. The same issue occurs when returning a Map withnullvalues.See this repo for a reproducible example: https://github.com/ragnaroh-nrk/spring-graphql-timer-leak-demo