Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 59375200D74 for ; Tue, 26 Dec 2017 02:10:47 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 57C42160C30; Tue, 26 Dec 2017 01:10:47 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9C188160C1E for ; Tue, 26 Dec 2017 02:10:46 +0100 (CET) Received: (qmail 12082 invoked by uid 500); 26 Dec 2017 01:10:45 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 12061 invoked by uid 99); 26 Dec 2017 01:10:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Dec 2017 01:10:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7FD481A0537 for ; Tue, 26 Dec 2017 01:10:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.879 X-Spam-Level: ** X-Spam-Status: No, score=2.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id LuQ4zT4ah0Dz for ; Tue, 26 Dec 2017 01:10:42 +0000 (UTC) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 798CB5F474 for ; Tue, 26 Dec 2017 01:10:41 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id e27so3580586lfb.9 for ; Mon, 25 Dec 2017 17:10:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=G9WyePnMJ228asMic9SaAAelBwRMFunNVomSKQEHRXM=; b=BjI/UhFLK+q8iLh82mg7zZDjdRpsKDMi5I3JUQieAVtJ+d6/+cnW/pxN+8jAasJTlq KQkk4zp1meTH68wtc/HCoykK0Jykkt3Y48fXjNHqHSFTciOHyIIpIL0noIMyOdneA2dp w5wX/V36Gf3Mq6jDmqSWeXTr8Swoe5WZMq92wvoq+Fn61pzfikyctgctot5x4j/sIFfI GApT7SqNyZWKSoHQPVrlsL7ikckXq9R8CgrvmAfTF6NcpF2CIDjJIop6kSbXDa6MA9tA +jx4BNm0pUyRFIjLTRbYmC1oZXXzfBVPY9MchfIk5R8z2gASquxR7kk4PTv6Z705MzYe AO1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=G9WyePnMJ228asMic9SaAAelBwRMFunNVomSKQEHRXM=; b=SM+070dZSwPQcZyp/D6wibKfvAsxpb+HPCx8ha3XaCgCFL5lbh4XCkQiSGPMOupkHZ G9yD8y4O3GN/vJGDHYhJg8wOn6nE1nZc2XsvPqLBvvygMxm8Khb75REGLk467t8Wqdwa AAh/92cg6ejiby80biT31zQ4sGarjZ+ijMQgzl+GNuQ+PA/kC8+obiXZGSchufg4r6HD CKxRC0kxR3pUum/1JXxVaUDqdI8wrcqRyI5+BPo89r992hqf3hI1bagu3Qvy6+iiOyWa QDk2DXXjEnrv2L31j+BhjZQ1M1CfXclGeGHZgG1QVBOSnGZq/TREgn+UhfCys1OTsnHa kSaw== X-Gm-Message-State: AKGB3mKMWv4SxDE7Y3K9x6EZfrDn3K2ee+KJYRswSNCm96DR8/AVk5fo hwYcb/NhtBHAuD++lP6U5YGaMlEy0fRS6bsADvvcWA== X-Google-Smtp-Source: ACJfBos0do39B6KGGgTUHGxAWsPc5KZw15q4ghGYO1JuaF5VcW95Q2sBru+gNmQ8rE3c08n1JRizmzf8DGhSaHk/fu0= X-Received: by 10.25.210.5 with SMTP id j5mr13274847lfg.52.1514250639873; Mon, 25 Dec 2017 17:10:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.159.129 with HTTP; Mon, 25 Dec 2017 17:10:39 -0800 (PST) In-Reply-To: References: From: Ted Yu Date: Mon, 25 Dec 2017 17:10:39 -0800 Message-ID: Subject: Re: assert in hbase 1.4 To: user@hbase.apache.org, clement@guillaume.bzh Content-Type: multipart/alternative; boundary="001a11412f6e7d9c5c056133f30c" archived-at: Tue, 26 Dec 2017 01:10:47 -0000 --001a11412f6e7d9c5c056133f30c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I got the following if I use your code directly: testAssert(org.apache.hadoop.hbase.client.TestHCM) Time elapsed: 0.096 sec <<< ERROR! java.io.UncheckedIOException: org.apache.hadoop.hbase.TableNotFoundException: AssertionTest at org.apache.hadoop.hbase.client.TestHCM.testAssert(TestHCM.java:243) If I create the table at the beginning of the test, the test passes without triggering assertion. I tried both master branch and branch-1.4 As I mentioned previously, the assertion in your case was probably related to the formation of row keys in hbase:meta table. See if you can reproduce the assertion by presplitting the table, etc. Here is the diff I used based on branch-1.4 diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.java index a5e3a65..2944c8e 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.jav= a +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestHCM.jav= a @@ -246,6 +246,18 @@ public class TestHCM { TEST_UTIL.shutdownMiniCluster(); } + @Test + public void testAssert() throws IOException{ + Configuration hbaseConfig =3D TEST_UTIL.getConfiguration(); + final TableName tableName =3D TableName.valueOf("assert"); + TEST_UTIL.createTable(tableName, FAM_NAM).close(); + String zkQuorum =3D "hbase123.docker"; + //hbaseConfig.set(HConstants.ZOOKEEPER_QUORUM, zkQuorum); + Connection connection =3D ConnectionFactory.createConnection(hbaseConfig); + Table table =3D connection.getTable(tableName); + ResultScanner scanner =3D table.getScanner(new Scan()); + scanner.iterator().hasNext(); // Exception thrown here + } private static int getHConnectionManagerCacheSize(){ return HConnectionTestingUtility.getConnectionCount(); On Mon, Dec 25, 2017 at 4:16 PM, Cl=C3=A9ment Guillaume wrote: > Here is a unit test, note that the AssertionTest table can exit or not > exit, assertion will fail un both case. > > > @Test > > public void test() throws IOException{ > > Configuration hbaseConfig =3D HBaseConfiguration.create(); > > String zkQuorum =3D "hbase123.docker"; > > hbaseConfig.set(HConstants.ZOOKEEPER_QUORUM, zkQuorum); > > Connection connection =3D ConnectionFactory.createConnection(hbaseConfi= g); > > Table table =3D connection.getTable(TableName.valueOf("AssertionTest"))= ; > > ResultScanner scanner =3D table.getScanner(new Scan()); > > scanner.iterator().hasNext(); // Exception thrown here > > } > > > > PS: I'm not receiving email when a response is posted here. I'm not > subscribed at the hbase-user mailing list but I would have hope that answ= er > get sent to me as direct email. > > 2017-12-21 12:28 GMT-08:00 Cl=C3=A9ment Guillaume = : > > > I'm upgrading my projects from 1.2.6 to 1.4, and I have a system > assertion > > failure (in a failsafe test that run with system assertion enable) > > > > java.lang.AssertionError > > at org.apache.hadoop.hbase.client.ClientScanner. > > loadCache(ClientScanner.java:484) ~[hbase-shaded-client-1.4.0.jar:1.4.0= ] > > at org.apache.hadoop.hbase.client.ClientScanner.next( > ClientScanner.java:312) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.ConnectionManager$ > > HConnectionImplementation.locateRegionInMeta( > ConnectionManager.java:1324) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.ConnectionManager$ > > HConnectionImplementation.locateRegion(ConnectionManager.java:1221) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.AsyncProcess$AsyncRequestFutureImpl. > > findAllLocationsOrFail(AsyncProcess.java:1063) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.AsyncProcess$AsyncRequestFutureImpl. > > groupAndSendMultiAction(AsyncProcess.java:980) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.AsyncProcess$ > > AsyncRequestFutureImpl.access$200(AsyncProcess.java:667) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.AsyncProcess.submitAll( > AsyncProcess.java:649) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.AsyncProcess.submitAll( > AsyncProcess.java:612) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.ConnectionManager$ > > HConnectionImplementation.processBatchCallback( > ConnectionManager.java:2392) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > at org.apache.hadoop.hbase.client.HTable.batchCallback(HTable.java:950) > > ~[hbase-shaded-client-1.4.0.jar:1.4.0] > > > > I have one Put action that look like that : {"totalColumns":1,"row":" > > a7ttxdQY9euS-KEaPIMvKsRUWANCmigsaiT8_-V0Sgc\\x00visited\\x00\\xFF\\ > > xFF\\xFE\\x9F\\x85Dh\\x19","families":{"a":[{"qualifier":" > > value","vlen":17,"tag":[],"timestamp":9223372036854775807}]}} > > The cluster is a local standalone instance. > > > > I haven't dig into it yet, but it looks like the data is correctly > written > > in hbase if I disable assertion. > > Any idea of what's causing the issue? > > > > Thank you. > > > --001a11412f6e7d9c5c056133f30c--