Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
ManagedByteArrayFromJavaByteArray in Org.Apache.REEF.Bridge.InteropUtil.cpp uses JNI GetByteArrayElements() but does not release the bytes. This causes the driver to slowly leak memory over time, which is exacerbated if the driver message is large.
JNI documentation recommends that Release<PrimitiveType>ArrayElements() be called after Get<PrimitiveTypeType>ArrayElements() to avoid leaking memory, since the returned array may be a copy of the Java array.