logging-flume
logging-flume copied to clipboard
FLUME-3347:Direct buffer memory causes sink thread to die
When the java.lang.OutOfMemoryError: Direct buffer memory exception occurs in the hdfsSink thread, the exception is thrown to the SinkRunner thread, but the SinkRunner thread does not catch the Throwable exception, causing the hdfsSink thread to die。
@mpercy Can you help me review?
@bessbd can you please review?
Thank you for the patch, @lightzhao !
The idea for this change sounds good. Unfortunately, without the right justification, this code probably should not be merged. Can you please think of an alternative improvement?