Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3BE6019ED9 for ; Sat, 9 Apr 2016 11:58:27 +0000 (UTC) Received: (qmail 85171 invoked by uid 500); 9 Apr 2016 11:58:26 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 84803 invoked by uid 500); 9 Apr 2016 11:58:25 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-dev@hadoop.apache.org Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 84782 invoked by uid 99); 9 Apr 2016 11:58:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Apr 2016 11:58:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AB2002C1F58 for ; Sat, 9 Apr 2016 11:58:25 +0000 (UTC) Date: Sat, 9 Apr 2016 11:58:25 +0000 (UTC) From: "Steve Loughran (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-4937) EntityGroupFSTimelineStore to close cached leveldb instances in serviceStop() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Steve Loughran created YARN-4937: ------------------------------------ Summary: EntityGroupFSTimelineStore to close cached leveldb instances in serviceStop() Key: YARN-4937 URL: https://issues.apache.org/jira/browse/YARN-4937 Project: Hadoop YARN Issue Type: Sub-task Affects Versions: 2.8.0 Environment: JUnit test runs with Reporter: Steve Loughran When I enable ATS1.5 and non-summary data, all my JUnit test runs with it fail pass if called individually. But if executed together, the 2nd+ service fails, key exception text is {code} org.fusesource.leveldbjni.internal.NativeDB$DBException: IO error: lock /Users/stevel/Projects/spark/yarn-timeline/yarn-timeline-history/target/tmp/integration/leveldb/timelineEntityGroupId_1111_0_application_1111_0000-timeline-cache.ldb/LOCK: already held by process {code} I believe the problem is that {{EntityGroupFSTimelineStore.cachedLogs}} isn't cleaning up its logs in {{serviceStop()}}, and as my tests use the same directory and appIds in its test runs, the next attempt to create a cache item fails. -- This message was sent by Atlassian JIRA (v6.3.4#6332)