[
https://issues.apache.org/jira/browse/HBASE-1121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665742#action_12665742
]
stack commented on HBASE-1121:
------------------------------
I've spent a bunch of time trying to reproduce but cannot. I put up 4 node
cluster and tried various sequences of moving -ROOT- around cluster and then
.META. I wanted to reproduce so I could prove the J-D (+nitay) found issue
fixed this prob.
I think I should commit the below anyways:
{code}
Index: src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
===================================================================
--- src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
(revision 736178)
+++ src/java/org/apache/hadoop/hbase/client/HConnectionManager.java
(working copy)
@@ -445,7 +445,8 @@
// second waits. The second thread will not do find.
if (!useCache || rootRegionLocation == null) {
- return locateRootRegion();
+ // Cache new location.
+ this.rootRegionLocation = locateRootRegion();
}
r
{code}
...maybe I need to open a new issue to do it.
> Cluster confused about where -ROOT- is
> --------------------------------------
>
> Key: HBASE-1121
> URL: https://issues.apache.org/jira/browse/HBASE-1121
> Project: Hadoop HBase
> Issue Type: Bug
> Environment: TRUNK trying to do big upload
> Reporter: stack
> Assignee: Jim Kellerman
> Attachments: 1121.patch
>
>
> Each node in cluster is doing below:
> {code}
> 2009-01-11 20:52:22,739 [regionserver/0:0:0:0:0:0:0:0:60020.compactor] DEBUG
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers: Attempt 0 of
> 10 failed with <org.apache.hadoop.hbase.NotServingRegionException:
> org.apache.hadoop.hbase.NotServingRegionException: -ROOT-,,0
> at
> org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2064)
> at
> org.apache.hadoop.hbase.regionserver.HRegionServer.getClosestRowBefore(HRegionServer.java:1545)
> at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
> at
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:894)
> >. Retrying after sleep of 20002009-01-11 20:52:22,742
> >[regionserver/0:0:0:0:0:0:0:0:60020.compactor] DEBUG
> >org.apache.hadoop.hbase.client.HConnectionManager$TableServers: Found ROOT
> >REGION => {NAME => '-ROOT-,,0', STARTKEY => '', ENDKEY => '', ENCODED =>
> >70236052, TABLE => {{NAME => '-ROOT-', IS_ROOT => 'true', IS_META => 'true',
> >FAMILIES => [{NAME => 'info', BLOOMFILTER => 'false', COMPRESSION => 'NONE',
> >VERSIONS => '10', LENGTH => '2147483647', TTL => '-1', IN_MEMORY => 'false',
> >BLOCKCACHE => 'true'}], INDEXES => []}}2009-01-11 20:52:24,759
> >[regionserver/0:0:0:0:0:0:0:0:60020.compactor] DEBUG
> >org.apache.hadoop.hbase.client.HConnectionManager$TableServers: Attempt 1 of
> >10 failed with <org.apache.hadoop.hbase.NotServingRegionException:
> >org.apache.hadoop.hbase.NotServingRegionException: -ROOT-,,0
> at
> org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:2064)
> at
> org.apache.hadoop.hbase.regionserver.HRegionServer.getClosestRowBefore(HRegionServer.java:1545)
> at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:632)
> at
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:894)
> {code}
> I tried to close the root region and tripped over hbase-1120.
> So I killed the regionserver hosting -ROOT- but weirdly had no effect as
> though the regionservers' internal cache of -ROOT- location cannot be
> changed.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.