HBASE-1303 Secondary index configuration prevents HBase from starting
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@761189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e1888e57f5
commit
90e58571e3
|
@ -68,6 +68,8 @@ Release 0.20.0 - Unreleased
|
|||
HBASE-1150 HMsg carries safemode flag; remove (Nitay Joffe via Stack)
|
||||
HBASE-1232 zookeeper client wont reconnect if there is a problem (Nitay
|
||||
Joffe via Andrew Purtell)
|
||||
HBASE-1303 Secondary index configuration prevents HBase from starting
|
||||
(Ken Weiner via Stack)
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1089 Add count of regions on filesystem to master UI; add percentage
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.apache.hadoop.hbase.ipc.IndexedRegionInterface;
|
|||
import org.apache.hadoop.hbase.regionserver.HRegion;
|
||||
import org.apache.hadoop.hbase.regionserver.transactional.TransactionalRegionServer;
|
||||
import org.apache.hadoop.util.Progressable;
|
||||
import org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion;
|
||||
|
||||
/**
|
||||
* RegionServer which maintains secondary indexes.
|
||||
|
@ -47,6 +48,15 @@ public class IndexedRegionServer extends TransactionalRegionServer implements
|
|||
super(serverAddress, conf);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getProtocolVersion(final String protocol, final long clientVersion)
|
||||
throws IOException {
|
||||
if (protocol.equals(IndexedRegionInterface.class.getName())) {
|
||||
return HBaseRPCProtocolVersion.versionID;
|
||||
}
|
||||
return super.getProtocolVersion(protocol, clientVersion);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected HRegion instantiateRegion(final HRegionInfo regionInfo)
|
||||
throws IOException {
|
||||
|
|
Loading…
Reference in New Issue