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

Kashif J S commented on HBASE-11157:
------------------------------------

IMO, For the patch you can explicitly catch (NotServingRegionException e) 
instead of IOException

> [hbck] NotServingRegionException: Received close for <regionName> but we are 
> not serving it
> -------------------------------------------------------------------------------------------
>
>                 Key: HBASE-11157
>                 URL: https://issues.apache.org/jira/browse/HBASE-11157
>             Project: HBase
>          Issue Type: Bug
>          Components: hbck
>    Affects Versions: 0.94.13
>            Reporter: dailidong
>            Priority: Trivial
>         Attachments: HBASE-11157.patch
>
>
> if hbck close a region then meet a NotServerRegionException,hbck will hang up 
> . we will close the region on the regionserver, but this regionserver is not 
> serving the region, so we should try catch this exception.
> Trying to fix unassigned region...
> Exception in thread "main" org.apache.hadoop.ipc.RemoteException: 
> org.apache.hadoop.hbase.NotServingRegionException: Received close for 
> regionName but we are not serving it
>         at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.closeRegion(HRegionServer.java:3204)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegionServer.closeRegion(HRegionServer.java:3185)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:323)
>         at 
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1426)
>         at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:1012)
>         at 
> org.apache.hadoop.hbase.ipc.WritableRpcEngine$Invoker.invoke(WritableRpcEngine.java:87)
>         at com.sun.proxy.$Proxy7.closeRegion(Unknown Source)
>         at 
> org.apache.hadoop.hbase.util.HBaseFsckRepair.closeRegionSilentlyAndWait(HBaseFsckRepair.java:150)
>         at 
> org.apache.hadoop.hbase.util.HBaseFsck.closeRegion(HBaseFsck.java:1565)
>         at 
> org.apache.hadoop.hbase.util.HBaseFsck.checkRegionConsistency(HBaseFsck.java:1704)
>         at 
> org.apache.hadoop.hbase.util.HBaseFsck.checkAndFixConsistency(HBaseFsck.java:1406)
>         at 
> org.apache.hadoop.hbase.util.HBaseFsck.onlineConsistencyRepair(HBaseFsck.java:419)
>         at 
> org.apache.hadoop.hbase.util.HBaseFsck.onlineHbck(HBaseFsck.java:438)
>         at org.apache.hadoop.hbase.util.HBaseFsck.exec(HBaseFsck.java:3670)
>         at org.apache.hadoop.hbase.util.HBaseFsck.run(HBaseFsck.java:3489)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
>         at org.apache.hadoop.hbase.util.HBaseFsck.main(HBaseFsck.java:3483)



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to