You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Clément Guillaume (JIRA)" <ji...@apache.org> on 2018/01/03 22:54:00 UTC

[jira] [Created] (HBASE-19700) assertion failure with client 1.4, cluster 1.2.3 and table with presplit

Clément Guillaume created HBASE-19700:
-----------------------------------------

             Summary: assertion failure with client 1.4, cluster 1.2.3 and table with presplit
                 Key: HBASE-19700
                 URL: https://issues.apache.org/jira/browse/HBASE-19700
             Project: HBase
          Issue Type: Bug
    Affects Versions: 1.4.0
            Reporter: Clément Guillaume


A system assertion (which is active by default when running maven-failsafe-plugin) is failing when a 1.4 client is talking to a 1.2.3 cluster for table with preslits. I believe the [1.4 client is meant to be compatible with a 1.2 cluster|http://mail-archives.apache.org/mod_mbox/hbase-dev/201711.mbox/%3C5BAAC90F-31D8-4A5F-B9E4-BA61FF4CD40E%40gmail.com%3E]

{code}
@Test
public void test() throws IOException{
	Configuration hbaseConfig = HBaseConfiguration.create();
	hbaseConfig.set(HConstants.ZOOKEEPER_QUORUM, "hbase123.docker");
	Connection connection = ConnectionFactory.createConnection(hbaseConfig);

	TableName tableName = TableName.valueOf("AssertionTest");
	Admin admin = connection.getAdmin();

	if(!admin.tableExists(tableName)){
		HTableDescriptor htable = new HTableDescriptor(tableName);
		htable.addFamily(new HColumnDescriptor(new byte[]{(byte)'a'}));
		byte[][] splitPoints = {{1, 2, 3, 4, 5, 6, 7}};
		admin.createTable(htable, splitPoints);
		System.out.println("table created");
	}

	Table table = connection.getTable(tableName);

	ResultScanner scanner = table.getScanner(new Scan());
	scanner.iterator().hasNext(); // Exception thrown here
}
{code}
{code}
java.lang.RuntimeException: java.lang.AssertionError
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:227)
	at org.apache.hadoop.hbase.client.ClientScanner.call(ClientScanner.java:277)
	at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:438)
	at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:312)
	at org.apache.hadoop.hbase.client.AbstractClientScanner$1.hasNext(AbstractClientScanner.java:92)
	at [...]
Caused by: java.lang.AssertionError
	at org.apache.hadoop.hbase.client.ClientScanner.loadCache(ClientScanner.java:484)
	at org.apache.hadoop.hbase.client.ClientScanner.next(ClientScanner.java:312)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1324)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1221)
	at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:356)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:153)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas.call(ScannerCallableWithReplicas.java:58)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:219)
	... 30 more
{code}

[Email thread|http://mail-archives.apache.org/mod_mbox/hbase-user/201712.mbox/%3CCALte62z-0xxhQiefeRc_3xs-bhj1VZU%2BBtd47m-KfPZb02Tpcw%40mail.gmail.com%3E]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)