You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeGuardedDecoding uses scala.reflect.api.Types.TypeApi#<:< and that causes memory leak in scala reflection Undolog as described here: scala/bug#8302
We have noticed memory leak in our application after consuming several millions of Avro messages. After analyzing heap dumps we have concluded that it is Undolog issue. We have found out that the only place that uses Undolog is in fact TypeGuardedDecoding. When we migrated derived decoder in favor of manually written one, memory issues disappeared.
I believe that in order to encounter this issue you must use either Either or shapeless coproduct in your model.
The text was updated successfully, but these errors were encountered:
TypeGuardedDecoding
usesscala.reflect.api.Types.TypeApi#<:<
and that causes memory leak in scala reflection Undolog as described here: scala/bug#8302We have noticed memory leak in our application after consuming several millions of Avro messages. After analyzing heap dumps we have concluded that it is Undolog issue. We have found out that the only place that uses Undolog is in fact TypeGuardedDecoding. When we migrated derived decoder in favor of manually written one, memory issues disappeared.
I believe that in order to encounter this issue you must use either
Either
or shapeless coproduct in your model.The text was updated successfully, but these errors were encountered: