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 2CFE9200CDA for ; Fri, 4 Aug 2017 19:53:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B5D716DFA5; Fri, 4 Aug 2017 17:53:59 +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 6F95016DFA3 for ; Fri, 4 Aug 2017 19:53:58 +0200 (CEST) Received: (qmail 43711 invoked by uid 500); 4 Aug 2017 17:53:51 -0000 Mailing-List: contact dev-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 dev@hbase.apache.org Received: (qmail 43699 invoked by uid 99); 4 Aug 2017 17:53:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Aug 2017 17:53:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0403F180314 for ; Fri, 4 Aug 2017 17:53:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id EtiqYodPg1yp for ; Fri, 4 Aug 2017 17:53:49 +0000 (UTC) Received: from mail-qk0-f178.google.com (mail-qk0-f178.google.com [209.85.220.178]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B0A6A5F5B4 for ; Fri, 4 Aug 2017 17:53:48 +0000 (UTC) Received: by mail-qk0-f178.google.com with SMTP id u139so13066443qka.1 for ; Fri, 04 Aug 2017 10:53:48 -0700 (PDT) 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=yoRz7XH63bmGWchp+RjfI9ugNPNQbd18F5lE4BOeyAg=; b=Bhp8JrQl9NwGgTkDjhLQOLXaEBI2BKGD9HCJMhu7oDpaC4J9m0MDXMqqSg7YFjYdrC JmzPXv5DD4zL50O5CJ8WjBfI5IAktxIoHoeV8sXSr2yfmDIW8qRA6jlTYYQodRJg03PX QUNJkLptnYjZxfJA2MZFuv1FMIMcDX4VfXqw/VyFQ6SjUEuujuSikXXjfHbjG+by7FvF AR6h3rJ3KmiMtfdL/1xYwxZ/QkYBdrPWJ+f5xqBlWnEFuOHerYlj/REvE74OoKPdF1To mj8D51Si24PwCr8OzF69K83oOeAQXfNJlW1bMm3LfjNk3Rd6N6WBnjLNvQUgm9WxluFu jmDQ== 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=yoRz7XH63bmGWchp+RjfI9ugNPNQbd18F5lE4BOeyAg=; b=mXzbkUSSZMRznGeyNJHt5+1EKQg0cN25bhc+XV+gGzqGZwHRZ/PG8wwZVPY5K/5Ag9 1zqfNV+5DYtD6d+18RVPoXIK+09D07qvakjAP/LUx9F6EqGKqmyAXlJnz+BjVqvV7Djt tgojhIwpTgOp2Rd/0h1SU16jZanx553sFM/+KsoQU2V035cVOeu+YNpWkJgCRY9bOcAA PQAf0tXEvSAfBDeBp31c0+26cf/aHYPECWtmH811xjtuYblYoC7vyLYCQhERnKAqEnZ1 9bPAlqFjjBl2ckk0njUyz3/QkgVA3ZGs+NUYB76q7MiU+/gKWQnBEJ7HO0jiL6G6BL6V WKfg== X-Gm-Message-State: AHYfb5ia8ctBL/JPG8IiUYiXF/1T5lDAab541JYufwzTpR9a5HJa1XoH SposEgBRe4aT1pjDH19i6U6Ft/8109u9 X-Received: by 10.55.54.84 with SMTP id d81mr3802814qka.143.1501869221759; Fri, 04 Aug 2017 10:53:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.137.209 with HTTP; Fri, 4 Aug 2017 10:53:41 -0700 (PDT) In-Reply-To: References: From: Vladimir Rodionov Date: Fri, 4 Aug 2017 10:53:41 -0700 Message-ID: Subject: Re: Bug in FIFOCompactionPolicy pre-checks? To: "dev@hbase.apache.org" Content-Type: multipart/alternative; boundary="001a1146f0f2764f430555f12d9f" archived-at: Fri, 04 Aug 2017 17:53:59 -0000 --001a1146f0f2764f430555f12d9f Content-Type: text/plain; charset="UTF-8" Yes, file a JIRA, Lars I will take a look -Vlad On Thu, Aug 3, 2017 at 11:41 PM, Lars George wrote: > Hi, > > See https://issues.apache.org/jira/browse/HBASE-14468 > > It adds this check to {{HMaster.checkCompactionPolicy()}}: > > {code} > // 1. Check TTL > if (hcd.getTimeToLive() == HColumnDescriptor.DEFAULT_TTL) { > message = "Default TTL is not supported for FIFO compaction"; > throw new IOException(message); > } > > // 2. Check min versions > if (hcd.getMinVersions() > 0) { > message = "MIN_VERSION > 0 is not supported for FIFO compaction"; > throw new IOException(message); > } > > // 3. blocking file count > String sbfc = htd.getConfigurationValue(HStore.BLOCKING_STOREFILES_KEY); > if (sbfc != null) { > blockingFileCount = Integer.parseInt(sbfc); > } > if (blockingFileCount < 1000) { > message = > "blocking file count '" + HStore.BLOCKING_STOREFILES_KEY + "' " > + blockingFileCount > + " is below recommended minimum of 1000"; > throw new IOException(message); > } > {code} > > Why does it only check the blocking file count on the HTD level, while > others are check on the HCD level? Doing this for example fails > because of it: > > {noformat} > hbase(main):008:0> create 'ttltable', { NAME => 'cf1', TTL => 300, > CONFIGURATION => { 'hbase.hstore.defaultengine.compactionpolicy.class' > => 'org.apache.hadoop.hbase.regionserver.compactions. > FIFOCompactionPolicy', > 'hbase.hstore.blockingStoreFiles' => 2000 } } > > ERROR: org.apache.hadoop.hbase.DoNotRetryIOException: blocking file > count 'hbase.hstore.blockingStoreFiles' 10 is below recommended > minimum of 1000 Set hbase.table.sanity.checks to false at conf or > table descriptor if you want to bypass sanity checks > at org.apache.hadoop.hbase.master.HMaster.warnOrThrowExceptionForFailure > (HMaster.java:1782) > at org.apache.hadoop.hbase.master.HMaster.sanityCheckTableDescriptor( > HMaster.java:1663) > at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:1545) > at org.apache.hadoop.hbase.master.MasterRpcServices. > createTable(MasterRpcServices.java:469) > at org.apache.hadoop.hbase.protobuf.generated. > MasterProtos$MasterService$2.callBlockingMethod(MasterProtos.java:58549) > at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2339) > at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:123) > at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run( > RpcExecutor.java:188) > at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run( > RpcExecutor.java:168) > Caused by: java.io.IOException: blocking file count > 'hbase.hstore.blockingStoreFiles' 10 is below recommended minimum of > 1000 > at org.apache.hadoop.hbase.master.HMaster.checkCompactionPolicy(HMaster. > java:1773) > at org.apache.hadoop.hbase.master.HMaster.sanityCheckTableDescriptor( > HMaster.java:1661) > ... 7 more > {noformat} > > That should work on the column family level, right? Shall I file a JIRA? > > Cheers, > Lars > --001a1146f0f2764f430555f12d9f--