Return-Path: X-Original-To: apmail-hbase-commits-archive@www.apache.org Delivered-To: apmail-hbase-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B77BE10B96 for ; Wed, 7 Aug 2013 23:15:17 +0000 (UTC) Received: (qmail 14481 invoked by uid 500); 7 Aug 2013 23:15:17 -0000 Delivered-To: apmail-hbase-commits-archive@hbase.apache.org Received: (qmail 14456 invoked by uid 500); 7 Aug 2013 23:15:17 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 14443 invoked by uid 99); 7 Aug 2013 23:15:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 23:15:17 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Aug 2013 23:15:15 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id ACB1823888E7; Wed, 7 Aug 2013 23:14:55 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1511529 - in /hbase/branches/0.95: hbase-common/src/main/resources/hbase-default.xml hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java src/main/docbkx/performance.xml Date: Wed, 07 Aug 2013 23:14:55 -0000 To: commits@hbase.apache.org From: jdcryans@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130807231455.ACB1823888E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jdcryans Date: Wed Aug 7 23:14:55 2013 New Revision: 1511529 URL: http://svn.apache.org/r1511529 Log: HBASE-8322 Re-enable hbase checksums by default HBASE-8785 revise zookeeper session timeout setting Modified: hbase/branches/0.95/hbase-common/src/main/resources/hbase-default.xml hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java hbase/branches/0.95/src/main/docbkx/performance.xml Modified: hbase/branches/0.95/hbase-common/src/main/resources/hbase-default.xml URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-common/src/main/resources/hbase-default.xml?rev=1511529&r1=1511528&r2=1511529&view=diff ============================================================================== --- hbase/branches/0.95/hbase-common/src/main/resources/hbase-default.xml (original) +++ hbase/branches/0.95/hbase-common/src/main/resources/hbase-default.xml Wed Aug 7 23:14:55 2013 @@ -283,12 +283,16 @@ possible configurations would overwhelm zookeeper.session.timeout 90000 - ZooKeeper session timeout. - HBase passes this to the zk quorum as suggested maximum time for a - session (This setting becomes zookeeper's 'maxSessionTimeout'). See - http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions - "The client sends a requested timeout, the server responds with the - timeout that it can give the client. " In milliseconds. + ZooKeeper session timeout in milliseconds. It is used in two different ways. + First, this value is used in the ZK client that HBase uses to connect to the ensemble. + It is also used by HBase when it starts a ZK server and it is passed as the 'maxSessionTimeout'. See + http://hadoop.apache.org/zookeeper/docs/current/zookeeperProgrammers.html#ch_zkSessions. + For example, if a HBase region server connects to a ZK ensemble that's also managed by HBase, then the + session timeout will be the one specified by this configuration. But, a region server that connects + to an ensemble managed with a different configuration will be subjected that ensemble's maxSessionTimeout. So, + even though HBase might propose using 90 seconds, the ensemble can have a max timeout lower than this and + it will take precedence. The current default that ZK ships with is 40 seconds, which is lower than HBase's. + zookeeper.znode.parent @@ -931,4 +935,32 @@ possible configurations would overwhelm datanode, performing block recovery to timeout on a dead datanode; usually dfs.socket.timeout. See the end of HBASE-8389 for more. + + hbase.regionserver.checksum.verify + true + + If set to true, HBase will read data and then verify checksums for + hfile blocks. Checksum verification inside HDFS will be switched off. + If the hbase-checksum verification fails, then it will switch back to + using HDFS checksums. + + + + hbase.hstore.bytes.per.checksum + 16384 + + Number of bytes in a newly created checksum chunk for HBase-level + checksums in hfile blocks. + + + + hbase.hstore.checksum.algorithm + CRC32 + + Name of an algorithm that is used to compute checksums. Possible values + are NULL, CRC32, CRC32C. + + + + Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java?rev=1511529&r1=1511528&r2=1511529&view=diff ============================================================================== --- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java (original) +++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java Wed Aug 7 23:14:55 2013 @@ -492,6 +492,16 @@ public class HRegionServer implements Cl // is enabled, then we automatically switch off hdfs checksum verification. this.useHBaseChecksum = conf.getBoolean(HConstants.HBASE_CHECKSUM_VERIFICATION, false); + // check that the user has not set the "dfs.client.read.shortcircuit.skip.checksum" property. + boolean shortCircuitSkipChecksum = conf.getBoolean( + "dfs.client.read.shortcircuit.skip.checksum", false); + if (shortCircuitSkipChecksum) { + LOG.warn("Configuration \"dfs.client.read.shortcircuit.skip.checksum\" should not " + + "be set to true." + (this.useHBaseChecksum ? " HBase checksum doesn't require " + + "it, see https://issues.apache.org/jira/browse/HBASE-6868." : "")); + assert !shortCircuitSkipChecksum; //this will fail if assertions are on + } + // Config'ed params this.numRetries = this.conf.getInt(HConstants.HBASE_CLIENT_RETRIES_NUMBER, HConstants.DEFAULT_HBASE_CLIENT_RETRIES_NUMBER); Modified: hbase/branches/0.95/src/main/docbkx/performance.xml URL: http://svn.apache.org/viewvc/hbase/branches/0.95/src/main/docbkx/performance.xml?rev=1511529&r1=1511528&r2=1511529&view=diff ============================================================================== Binary files - no diff available.