hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-Marc Spaggiari (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-9328) Table web UI is corrupted sometime
Date Fri, 13 Sep 2013 12:28:56 GMT

    [ https://issues.apache.org/jira/browse/HBASE-9328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766434#comment-13766434

Jean-Marc Spaggiari commented on HBASE-9328:

Hi [~stack], thanks for looking at it. 

Basically, getCompactionStatein HBaseAdmin call the RS using ProtoBuff to get the compaction
state. The RS will return a NotServingRegionException if required, but it's then encapsulated
into a RemoteException. Then the catch (NotServingRegionException e) will not catch it. It
need to be catch into a catch (RemoteException e). It's what I'm doing here.

If there is any other exception, then it will call throw e; to be consistent with the current
behaviour, and this will be catch on the JSP side which will do a printStackTrace. So at the
end, this will be logged into the .out file like it was before, but now that will display
a nice "unknow" for the state instead of corrupting the interface.

Before this patch, when an expection occured, UI got corrupted and exception was logged into
the .out file. After this patch, when an exception occurs, the UI is no more corrupted and
it will show "Unknown" for the state. Also if the server is not serving the region, it will
confirm that it's also not compacting.
> Table web UI is corrupted sometime
> ----------------------------------
>                 Key: HBASE-9328
>                 URL: https://issues.apache.org/jira/browse/HBASE-9328
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.98.0, 0.95.2, 0.94.11
>            Reporter: Jimmy Xiang
>            Assignee: Jean-Marc Spaggiari
>              Labels: web-ui
>         Attachments: HBASE-9328-v0-trunk.patch, HBASE-9328-v1-trunk.patch, HBASE-9328-v2-0.94.patch,
HBASE-9328-v2-trunk.patch, HBASE-9328-v3-trunk.patch, HBASE-9328-v4-trunk.patch, HBASE-9328-v4-trunk.patch,
HBASE-9328-v5-trunk.patch, table.png
> The web UI page source is like below:
> {noformat}
> <h2>Table Attributes</h2>
> <table class="table table-striped">
>   <tr>
>       <th>Attribute Name</th>
>       <th>Value</th>
>       <th>Description</th>
>   </tr>
>   <tr>
>       <td>Enabled</td>
>       <td>true</td>
>       <td>Is the table enabled</td>
>   </tr>
>   <tr>
>       <td>Compaction</td>
>       <td>
> <p><hr/></p>
> {noformat}
> No sure if it is a HBase issue, or a network/browser issue.

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

View raw message