[
https://issues.apache.org/jira/browse/HBASE-11551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14071241#comment-14071241
]
chunhui shen commented on HBASE-11551:
--------------------------------------
“This patch adds a new inner try/catch that does nothing but catch an IOE”
Not catch an IOE, but catch a not-expected exception.
Anyway, writer thread shouldn't exit except the flag 'cacheEnabled' is set to
false.
> BucketCache$WriterThread.run() doesn't handle exceptions correctly
> ------------------------------------------------------------------
>
> Key: HBASE-11551
> URL: https://issues.apache.org/jira/browse/HBASE-11551
> Project: HBase
> Issue Type: Bug
> Reporter: Ted Yu
> Assignee: Ted Yu
> Fix For: 0.99.0, 2.0.0
>
> Attachments: 11551-v1.txt
>
>
> Currently the catch is outside the while loop:
> {code}
> try {
> while (cacheEnabled && writerEnabled) {
> ...
> } catch (Throwable t) {
> LOG.warn("Failed doing drain", t);
> }
> {code}
> When exception (e.g. BucketAllocatorException) is thrown, run() method would
> terminate, silently.
--
This message was sent by Atlassian JIRA
(v6.2#6252)