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 D531E10877 for ; Thu, 30 Jan 2014 19:49:09 +0000 (UTC) Received: (qmail 94466 invoked by uid 500); 30 Jan 2014 19:49:08 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 94353 invoked by uid 500); 30 Jan 2014 19:49:07 -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 94344 invoked by uid 99); 30 Jan 2014 19:49:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jan 2014 19:49:07 +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 ramkrishna.s.vasudevan@gmail.com designates 209.85.220.50 as permitted sender) Received: from [209.85.220.50] (HELO mail-pa0-f50.google.com) (209.85.220.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Jan 2014 19:49:02 +0000 Received: by mail-pa0-f50.google.com with SMTP id kp14so3534281pab.37 for ; Thu, 30 Jan 2014 11:48:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=x05yJnfFmncDDkZh8K0vJaw8qNs/i7s74ff/ddnJmqI=; b=Xzk+gFsmsJnSIks7NEBMga4Wq6sCFMRc+6wWbiaquDL7IbBvye4P1s1ZH5Nr9nSf5e moMpbSZZhAWhrsLP+oFYmz9oh9o2BZCn8nXMCWMnxOy6qpNwTDj/UErU+krlGo0CMPCQ 5NH6PXsLzNzMvrK+kGPFd8Wskn1mF3MiNb3Jm6R54AtE3qaA/jYw/eDGRlYi9aho+FKC 49U5W7LOUS+iEEg/RJT7nBPdbG7/SBaSaE4Y9+/1lXUdo1Bhv4gWgciI2WM4n5+OOg9S qQ3mwP2Nv2kJrqk/wyxfARlM0ViaWOKx0P9/RpCyQ70X5Cknnx0XfUUlJpL88X1gRVvM wuvg== MIME-Version: 1.0 X-Received: by 10.67.23.135 with SMTP id ia7mr16071353pad.5.1391111322009; Thu, 30 Jan 2014 11:48:42 -0800 (PST) Received: by 10.68.7.161 with HTTP; Thu, 30 Jan 2014 11:48:41 -0800 (PST) Date: Fri, 31 Jan 2014 01:18:41 +0530 Message-ID: Subject: StoreScanner created for memstore flush should be bothered about updated readers? From: ramkrishna vasudevan To: "dev@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a1134519a3103a804f13558b7 X-Virus-Checked: Checked by ClamAV on apache.org --001a1134519a3103a804f13558b7 Content-Type: text/plain; charset=ISO-8859-1 Hi All In case of flush we create a memstore flusher which in turn creates a StoreScanner backed by a Single ton MemstoreScanner. But this scanner also registers for any updates in the reader in the HStore. Is this needed? If this happens then any update on the reader may nullify the current heap and the entire Scanner Stack is reset, but this time with the other scanners for all the files that satisfies the last top key. So the flush that happens on the memstore holds the storefile scanners also in the heap that was recreated but originally the intention was to create a scanner on the memstore alone. Am i missing something here? Or what i observed is right? If so, then I feel that this step can be avoided. Regards Ram --001a1134519a3103a804f13558b7--