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 0DC7B200C5B for ; Wed, 5 Apr 2017 00:51:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0C5A7160B90; Tue, 4 Apr 2017 22:51:46 +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 53F0C160BA1 for ; Wed, 5 Apr 2017 00:51:45 +0200 (CEST) Received: (qmail 98798 invoked by uid 500); 4 Apr 2017 22:51:44 -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 98788 invoked by uid 99); 4 Apr 2017 22:51:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2017 22:51:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 148C41A5798 for ; Tue, 4 Apr 2017 22:51:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id V-_g-bfuUyzD for ; Tue, 4 Apr 2017 22:51:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id A81365FC51 for ; Tue, 4 Apr 2017 22:51:42 +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 E52AAE026E for ; Tue, 4 Apr 2017 22:51:41 +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 88CE024017 for ; Tue, 4 Apr 2017 22:51:41 +0000 (UTC) Date: Tue, 4 Apr 2017 22:51:41 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11444) ACID Compactor should generate stats/alerts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 04 Apr 2017 22:51:46 -0000 [ https://issues.apache.org/jira/browse/HIVE-11444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15956006#comment-15956006 ] Eugene Koifman commented on HIVE-11444: --------------------------------------- More generally, raise alert 1. if there are too many open txns 2. if there are too many aborted txns - most likely a misconfigured streaming ingest client. Need to include client info in the alert. 3. if there are a lot of entries in TXN_COMPONENTS - means compactor is not keeping up In extreme cases both can cause the amount of metadata to slow down the metastore operations (TxnHandler/CompactionTxnHandler) a use very large amounts of RAM (ValidTxnList) > ACID Compactor should generate stats/alerts > ------------------------------------------- > > Key: HIVE-11444 > URL: https://issues.apache.org/jira/browse/HIVE-11444 > Project: Hive > Issue Type: Improvement > Components: Transactions > Affects Versions: 1.0.0 > Reporter: Eugene Koifman > Assignee: Eugene Koifman > > Compaction should generate stats about number of files it reads, min/max/avg size etc. It should also generate alerts if it looks like the system is not configured correctly. > For example, if there are lots of delta files with very small files, it's a good sign that Streaming API is configured with batches that are too small. > Simplest idea is to add another periodic task to AcidHouseKeeperService to > //periodically do select count(*), min(txnid),max(txnid), type from txns group by type. > //1. dump that to log file at info > //2. could also keep counts for last 10min, hour, 6 hours, 24 hours, etc > //2.2 if a large increase is detected - issue alert (at least to the log for now) at warn/error > Should also alert if there is ACID activity but no compactions running. > One way to do this is to add logic to TxnHandler to periodically check contents of COMPACTION_QUEUE table and keep a simple histogram of compactions over last few hours. > Similarly can run a periodic check of transactions started (or committed/aborted) and keep a simple histogram. Then the 2 can be used to detect that there is ACID write activity but no compaction activity. -- This message was sent by Atlassian JIRA (v6.3.15#6346)