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 880AE200C76 for ; Fri, 28 Apr 2017 19:17:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 86D72160BA3; Fri, 28 Apr 2017 17:17:08 +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 CE7A7160B95 for ; Fri, 28 Apr 2017 19:17:07 +0200 (CEST) Received: (qmail 69471 invoked by uid 500); 28 Apr 2017 17:17:06 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 69337 invoked by uid 99); 28 Apr 2017 17:17:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 17:17:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 5CAACC04EF for ; Fri, 28 Apr 2017 17:17:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Qm2r3GEHiRwL for ; Fri, 28 Apr 2017 17:17:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D42275FCB9 for ; Fri, 28 Apr 2017 17:17:04 +0000 (UTC) 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 6A2D6E07DA for ; Fri, 28 Apr 2017 17:17:04 +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 21A4A21DE1 for ; Fri, 28 Apr 2017 17:17:04 +0000 (UTC) Date: Fri, 28 Apr 2017 17:17:04 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-16534) Add capability to tell aborted transactions apart from open transactions in ValidTxnList MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Apr 2017 17:17:08 -0000 [ https://issues.apache.org/jira/browse/HIVE-16534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15989172#comment-15989172 ] Eugene Koifman edited comment on HIVE-16534 at 4/28/17 5:16 PM: ---------------------------------------------------------------- you refactored ValidReadTxnList() c'tor and removed the sorting of exceptions - why? writeToString() always creates 3 ':' - why does the deserializer need cases like _if (values.length < 3) {_ wouldn't be simpler to just serialize the BitSet as "0010110...." - it's very compact and the deserializer wouldn't have to sort and do multiple binary searches.... why does _isTxnAborted()_ need a binary search? why not just look up the in the bitset? _bitSet.set(0, bitSet.length()); // for ValidCompactorTxnList, everything in exceptio_ - shouldn't this turn all the bits ON? Nit: seems like ValidCompactorTxnList() c'tor could do this since it's always the case for compactor was (Author: ekoifman): you refactored ValidReadTxnList() c'tor and removed the sorting of exceptions - why? writeToString() always creates 3 ':' - why does the deserializer need cases like _if (values.length < 3) {_ wouldn't be simpler to just serialize the BitSet as "0010110...." - it's very compact and the deserializer wouldn't have to sort and do multiple binary searches.... why does _ isTxnAborted()_ need a binary search? why not just look up the in the bitset? _bitSet.set(0, bitSet.length()); // for ValidCompactorTxnList, everything in exceptio_ - shouldn't this turn all the bits ON? Nit: seems like ValidCompactorTxnList() c'tor could do this since it's always the case for compactor > Add capability to tell aborted transactions apart from open transactions in ValidTxnList > ---------------------------------------------------------------------------------------- > > Key: HIVE-16534 > URL: https://issues.apache.org/jira/browse/HIVE-16534 > Project: Hive > Issue Type: Bug > Components: Transactions > Reporter: Wei Zheng > Assignee: Wei Zheng > Attachments: HIVE-16534.1.patch, HIVE-16534.2.patch > > > Currently in ValidReadTxnList, open transactions and aborted transactions are stored together in one array. That makes it impossible to extract just aborted transactions or open transactions. > For ValidCompactorTxnList this is fine, since we only store aborted transactions but no open transactions. -- This message was sent by Atlassian JIRA (v6.3.15#6346)