Return-Path: X-Original-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B77C10C01 for ; Sun, 7 Jul 2013 16:38:15 +0000 (UTC) Received: (qmail 11056 invoked by uid 500); 7 Jul 2013 16:38:14 -0000 Delivered-To: apmail-hadoop-hdfs-dev-archive@hadoop.apache.org Received: (qmail 10855 invoked by uid 500); 7 Jul 2013 16:38:14 -0000 Mailing-List: contact hdfs-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-dev@hadoop.apache.org Delivered-To: mailing list hdfs-dev@hadoop.apache.org Received: (qmail 10847 invoked by uid 99); 7 Jul 2013 16:38:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jul 2013 16:38:13 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of varun@pinterest.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-ob0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jul 2013 16:38:08 +0000 Received: by mail-ob0-f177.google.com with SMTP id ta17so4610477obb.8 for ; Sun, 07 Jul 2013 09:37:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=o+zMvDi3fFhUHPIVYb+b2/BLHmKIt9N1ZeSG2x/YKJI=; b=on4Hw9Blii1Fg6p/x7SmWgk8+XvyvwUq4Sz6Jy9uS0clCUhgcZxwGpd86i8f8UZY/f mgz/BC1k2P9O6LB/00rhcr7r67HNDINkP0fhBt4irVBK4gY3V4svxyPSrbyn4CkVbYBu e3T7NEQ+545ua6aQjRg4uVkBzZVKjjxwu5xl1FO5qXw3hfX1YXs5biCbqZjzDpx3vc7+ H+xrRsniRh5CtqnBJQ6QVPDXI6WaRf0ZppWuijVRTL3QwiF+N9jnID6GqduiDNJFykBQ RdYLHn14nZ6me21pqwkT1geevXi9ndCkpnW7n3Pdq+UraxJ20WMM7cnpISmrhxcCc/pO kTKA== MIME-Version: 1.0 X-Received: by 10.182.66.97 with SMTP id e1mr17835877obt.66.1373215066864; Sun, 07 Jul 2013 09:37:46 -0700 (PDT) Received: by 10.76.116.228 with HTTP; Sun, 7 Jul 2013 09:37:46 -0700 (PDT) In-Reply-To: References: Date: Sun, 7 Jul 2013 09:37:46 -0700 Message-ID: Subject: Re: Mysterious 7 byte reads from .meta files From: Varun Sharma To: hdfs-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=e89a8fb1f52242ce6904e0ee8c78 X-Gm-Message-State: ALoCoQkKcXuxKfVS5S31uacJ/Dlhc99T6YrkUCVBN0yFV8GqvzD9m9zRZfBcYUivteh1/OKFosXa X-Virus-Checked: Checked by ClamAV on apache.org --e89a8fb1f52242ce6904e0ee8c78 Content-Type: text/plain; charset=ISO-8859-1 Created https://issues.apache.org/jira/browse/HDFS-4960 and attached a patch... Thanks ! On Sun, Jul 7, 2013 at 9:06 AM, Harsh J wrote: > The header of the meta file is read for block metadata version > validation. The checksum checks are performed after the header is read > (and skipped if the config's so). The code can be viewed in the > BlockReaderLocal.java, which is used when local reads are turned on. > > I suppose we could skip reading the version as well, though it seems > "general". Please file a JIRA for this! > > On Sat, Jul 6, 2013 at 5:55 AM, Varun Sharma wrote: > > Hi, > > > > We are running hbase with application level checksums turned on. We > > basically have the following configuration: > > > > dfs.client.read.shortcircuit.skip.checksum -> true > > hbase.regionserver.checksum.verify -> true > > > > We have shortcircuit reads enabled and have verified that its working - > > only the HBase region server is accessing the disk. However, an strace on > > the region server shows some mysterious 7 byte seeks on the .meta files > > (which are also supposed to contain the checksum). We are running > > hadoop-2.0.0-alpha. > > > > Do 7 byte reads from .meta files ring a bell to someone's ears - I am not > > totally sure if these are checksums or not and I also don't know enough > > about hdfs ? > > > > Thanks > > Varun > > > > -- > Harsh J > --e89a8fb1f52242ce6904e0ee8c78--