logging-flume icon indicating copy to clipboard operation
logging-flume copied to clipboard

FLUME-3347:Direct buffer memory causes sink thread to die

Open lightzhao opened this issue 6 years ago • 4 comments

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。

lightzhao avatar Nov 19 '19 12:11 lightzhao

exception

lightzhao avatar Nov 19 '19 12:11 lightzhao

@mpercy Can you help me review?

lightzhao avatar Nov 20 '19 04:11 lightzhao

@bessbd can you please review?

lightzhao avatar Dec 07 '19 03:12 lightzhao

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?

bessbd avatar Dec 07 '19 10:12 bessbd