Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 62880FC5B for ; Fri, 5 Apr 2013 17:25:37 +0000 (UTC) Received: (qmail 98540 invoked by uid 500); 5 Apr 2013 17:25:36 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 98479 invoked by uid 500); 5 Apr 2013 17:25:36 -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 98471 invoked by uid 99); 5 Apr 2013 17:25:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 17:25:36 +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 (athena.apache.org: domain of sergey@hortonworks.com designates 74.125.82.173 as permitted sender) Received: from [74.125.82.173] (HELO mail-we0-f173.google.com) (74.125.82.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 17:25:32 +0000 Received: by mail-we0-f173.google.com with SMTP id t57so3021287wey.18 for ; Fri, 05 Apr 2013 10:25:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:x-gm-message-state; bh=6qSgAsu+ueLrHwM1X820jvhkhKwVpSJ4afY4HjRbJOc=; b=Rv4cZ9KC5vtOnW/7OlUhIRa7nIRosRlMYgQD4TC7IGkphcTyHyuk1bGkjbZduhnwFA h5JAAtk+1e5ag9LjUr7DStzDGnDmSOgcXLoLTJkqYcyewxGLGiEy8vqVXGCGIhk0eNo/ tml/bk+i4So9zuzqSsiKfA8SI0VEkrmYJn+pPJo+48u/SZTSDg1FrzFyekSOAbw7BXeP 3Pldnm0xmpjIZ3s2eZG3K/g0zfdwbfYRQL8GLTwS9wC8RBCfX8ycruQkBt6MaWqGMPZr ozpj6b//rBFwe+Aj0DxYTM0NZ1MU7/70XMHokiEFrQJKoDkMyZEyhouVBpo9uJTlOESN /mDw== MIME-Version: 1.0 X-Received: by 10.180.92.229 with SMTP id cp5mr70016wib.20.1365182710673; Fri, 05 Apr 2013 10:25:10 -0700 (PDT) Received: by 10.216.166.132 with HTTP; Fri, 5 Apr 2013 10:25:10 -0700 (PDT) In-Reply-To: References: Date: Fri, 5 Apr 2013 10:25:10 -0700 Message-ID: Subject: Re: Should compaction be triggered even if User periodically flushes From: Sergey Shelukhin To: dev@hbase.apache.org Content-Type: multipart/alternative; boundary=f46d043c094e8609d404d9a05e57 X-Gm-Message-State: ALoCoQleWDzfG9GwMzvrK8dVVI+R9Iz9LpD0ieueLfTZ39MiCp5pAX/NxJgm2HpWOmIkfaXaLYZW X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c094e8609d404d9a05e57 Content-Type: text/plain; charset=ISO-8859-1 +1... logs would be interesting to see, unless there was configuration difference it should be the same. The only thing that comes to mind if off-peak hours starting maybe? On Fri, Apr 5, 2013 at 9:57 AM, Jean-Daniel Cryans wrote: > That sounds like a bug to me. Can you find why it's not being compacted? > Was this behavior changed at some point? > > Thx, > > J-D > > > On Fri, Apr 5, 2013 at 9:50 AM, ramkrishna vasudevan < > ramkrishna.s.vasudevan@gmail.com> wrote: > > > Hi JM > > Thanks for your reply. My concern is not with respect to compaction > > happening when a region is opening in another RS, my point was though the > > flushes were happening and more storefiles are created > > by user initiated flushing, the compaction were not getting triggered. > > > > > > On Fri, Apr 5, 2013 at 4:50 PM, Jean-Marc Spaggiari < > > jean-marc@spaggiari.org > > > wrote: > > > > > Hi Ram, > > > > > > What do you think is wrong with the approach below? > > > > > > Doing the compaction when the region is opened in another RS will > > > improve data locality. > > > > > > JM > > > > > > 2013/4/5 ramkrishna vasudevan : > > > > Hi devs > > > > > > > > If user periodically flushes the memstore we keep creating Store > files. > > > > Now if the number of store files satisfies the compaction policy we > > > dont > > > > do compaction. > > > > > > > > We print the msg saying compaction_requested=true but do not include > > into > > > > the compactsplitthread. > > > > > > > > But when the RS goes down and the region gets opened in another RS as > > > part > > > > of postOpenDeployTasks we do compaction because the store file count > > has > > > > satisfied the compaction criteria. > > > > > > > > What could be the right approach here? > > > > > > > > Regards > > > > Ram > > > > > > --f46d043c094e8609d404d9a05e57--