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 9FDB42009D9 for ; Wed, 18 May 2016 07:43:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9E457160A23; Wed, 18 May 2016 05:43:14 +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 E5E78160A09 for ; Wed, 18 May 2016 07:43:13 +0200 (CEST) Received: (qmail 98409 invoked by uid 500); 18 May 2016 05:43:13 -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 98398 invoked by uid 99); 18 May 2016 05:43:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 May 2016 05:43:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E13232C033A for ; Wed, 18 May 2016 05:43:12 +0000 (UTC) Date: Wed, 18 May 2016 05:43:12 +0000 (UTC) From: "Wei Zheng (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-13691) No record with CQ_ID=0 found in COMPACTION_QUEUE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 May 2016 05:43:14 -0000 [ https://issues.apache.org/jira/browse/HIVE-13691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15288478#comment-15288478 ] Wei Zheng commented on HIVE-13691: ---------------------------------- Nit: there're some unnecessary imports in TxnHandler.java and TestTxnCommands2. Otherwise looks good. +1. > No record with CQ_ID=0 found in COMPACTION_QUEUE > ------------------------------------------------ > > Key: HIVE-13691 > URL: https://issues.apache.org/jira/browse/HIVE-13691 > Project: Hive > Issue Type: Bug > Components: Transactions > Affects Versions: 1.3.0 > Reporter: Eugene Koifman > Assignee: Eugene Koifman > Priority: Critical > Fix For: 1.3.0, 2.1.0 > > Attachments: HIVE-13691.2.patch, HIVE-13691.patch > > > {noformat} > 2016-04-29 18:49:31,594 ERROR [Thread-11]: compactor.Initiator (Initiator.java:run(141)) - Caught exception while trying to determine if we should compact id:0,dbname:default,tableName:service_logs_v2,par > tName:ds=2016-04-21,state:^@,type:null,runAs:null,tooManyAborts:false,highestTxnId:0. Marking clean to avoid repeated failures, MetaException(message:Timeout when executing method: getTable) > at org.apache.hadoop.hive.metastore.Deadline.newMetaException(Deadline.java:187) > at org.apache.hadoop.hive.metastore.Deadline.check(Deadline.java:177) > at org.apache.hadoop.hive.metastore.Deadline.checkTimeout(Deadline.java:160) > at org.apache.hadoop.hive.metastore.ObjectStore.convertToParts(ObjectStore.java:1839) > at org.apache.hadoop.hive.metastore.ObjectStore.getPartitionsViaOrmFilter(ObjectStore.java:2255) > at org.apache.hadoop.hive.metastore.ObjectStore.access$300(ObjectStore.java:165) > at org.apache.hadoop.hive.metastore.ObjectStore$3.getJdoResult(ObjectStore.java:2051) > at org.apache.hadoop.hive.metastore.ObjectStore$3.getJdoResult(ObjectStore.java:2043) > at org.apache.hadoop.hive.metastore.ObjectStore$GetHelper.run(ObjectStore.java:2400) > at org.apache.hadoop.hive.metastore.ObjectStore.getPartitionsByNamesInternal(ObjectStore.java:2043) > at org.apache.hadoop.hive.metastore.ObjectStore.getPartitionsByNames(ObjectStore.java:2037) > at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.apache.hadoop.hive.metastore.RawStoreProxy.invoke(RawStoreProxy.java:114) > at com.sun.proxy.$Proxy0.getPartitionsByNames(Unknown Source) > at org.apache.hadoop.hive.ql.txn.compactor.CompactorThread.resolvePartition(CompactorThread.java:111) > at org.apache.hadoop.hive.ql.txn.compactor.Initiator.run(Initiator.java:129) > Caused by: org.apache.hadoop.hive.metastore.DeadlineException: Timeout when executing method: getTable > at org.apache.hadoop.hive.metastore.Deadline.check(Deadline.java:174) > ... 16 more > 2016-04-29 18:49:31,595 ERROR [Thread-11]: compactor.Initiator (Initiator.java:run(154)) - Initiator loop caught unexpected exception this time through the loop: java.lang.IllegalStateException: No record with CQ_ID=0 found in COMPACTION_QUEUE > at org.apache.hadoop.hive.metastore.txn.CompactionTxnHandler.markFailed(CompactionTxnHandler.java:861) > at org.apache.hadoop.hive.ql.txn.compactor.Initiator.run(Initiator.java:144) > {noformat} > {noformat} > 2016-04-29 18:49:31,595 ERROR [Thread-11]: compactor.Initiator (Initiator.java:run(154)) - Initiator loop caught unexpected exception this time through the loop: java.lang.IllegalStateException: No record with CQ_ID=0 found in COMPACTION_QUEUE > at org.apache.hadoop.hive.metastore.txn.CompactionTxnHandler.markFailed(CompactionTxnHandler.java:861) > at org.apache.hadoop.hive.ql.txn.compactor.Initiator.run(Initiator.java:144) > {noformat} > is triggered by _DeadlineException: Timeout when executing method_ but is nonetheless an issue. > We should be able to record an entry in completed_compaction_queue to represent a failed compaction even if an entry in compaction_queue was never made, as is the case here. -- This message was sent by Atlassian JIRA (v6.3.4#6332)