From dev-return-2344-archive-asf-public=cust-asf.ponee.io@tephra.incubator.apache.org Sun Apr 14 04:08:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0778E180668 for ; Sun, 14 Apr 2019 06:08:04 +0200 (CEST) Received: (qmail 81345 invoked by uid 500); 14 Apr 2019 04:08:04 -0000 Mailing-List: contact dev-help@tephra.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tephra.incubator.apache.org Delivered-To: mailing list dev@tephra.incubator.apache.org Received: (qmail 81328 invoked by uid 99); 14 Apr 2019 04:08:04 -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; Sun, 14 Apr 2019 04:08:04 +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 CDBAF1810AC for ; Sun, 14 Apr 2019 04:08:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -108.001 X-Spam-Level: X-Spam-Status: No, score=-108.001 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled 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 vg9AXf9obGUY for ; Sun, 14 Apr 2019 04:08:02 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id A20285FB4E for ; Sun, 14 Apr 2019 04:08:01 +0000 (UTC) Received: (qmail 81322 invoked by uid 99); 14 Apr 2019 04:08:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Apr 2019 04:08:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7D215E0E84 for ; Sun, 14 Apr 2019 04:08:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0C7C624422 for ; Sun, 14 Apr 2019 04:08:00 +0000 (UTC) Date: Sun, 14 Apr 2019 04:08:00 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: dev@tephra.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TEPHRA-299) Executing a large batch delete is very slow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TEPHRA-299?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1681= 7178#comment-16817178 ]=20 Lars Hofhansl commented on TEPHRA-299: -------------------------------------- -v2 is better. Directly creates the Puts. Also optimizes the existing code = by not getting the TableDescriptor for each Delete (which is an RPC to the = HMaster). Please have a look. > Executing a large batch delete is very slow > ------------------------------------------- > > Key: TEPHRA-299 > URL: https://issues.apache.org/jira/browse/TEPHRA-299 > Project: Tephra > Issue Type: Bug > Affects Versions: 0.15.0-incubating > Reporter: Lars Hofhansl > Assignee: Poorna Chandra > Priority: Major > Attachments: 299-DOES-NOT_WORK.txt, 299-client-v2.txt, 299-client= .txt > > > I noticed that batch deletes are quire slow. In the profiler I found that= almost all of the time is spent in org.apache.hadoop.hbase.regionserver.wa= l.FSHLog.blockOnSync(). > Looking at TransactionProcessor.preDelete it is obvious why: > The batch delete is translated into *single* puts that are added to the r= egion one by one, so each time the WAL is flushed. > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)