[
https://issues.apache.org/jira/browse/BOOKKEEPER-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13714354#comment-13714354
]
Vinay commented on BOOKKEEPER-625:
----------------------------------
Sorry for the late reply.
{quote}With this patch the process will just exit silently, no?
Couldn't we also change the catch on line 158 to take a Throwable rather than
an Exception. This way, it will at least attempt to inform the user of the
problem.{quote}
[~aivanise] Yes, process will exit silently. But anyway console logs will have
the OutOfMemory information.
If we catch Throwable instead of Exception, then it will just avoid the thread
exit, but It may not reduce the memory used and we may get OOME for every call.
> On OutOfMemoryError in NIOServerFactory thread bookie should shutdown
> ---------------------------------------------------------------------
>
> Key: BOOKKEEPER-625
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-625
> Project: Bookkeeper
> Issue Type: Bug
> Components: bookkeeper-server
> Affects Versions: 4.2.1
> Reporter: Vinay
> Assignee: Vinay
> Fix For: 4.2.2
>
> Attachments: BOOKKEEPER-625-branch-4.2.patch
>
>
> Observed OutOfMemoryError in NIOServerFactory, but it didnt bring down the
> bookie and it continued to run without serving.
> On OOME in any thread, bookie should shutdown.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira