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 499F1200B81 for ; Mon, 29 Aug 2016 23:37:41 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 481B1160A89; Mon, 29 Aug 2016 21:37:41 +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 BDA8B160AB8 for ; Mon, 29 Aug 2016 23:37:40 +0200 (CEST) Received: (qmail 2891 invoked by uid 500); 29 Aug 2016 21:37:40 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 2835 invoked by uid 99); 29 Aug 2016 21:37:39 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Aug 2016 21:37:39 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5B5C2E0556; Mon, 29 Aug 2016 21:37:39 +0000 (UTC) From: joshelser To: dev@accumulo.apache.org Reply-To: dev@accumulo.apache.org References: In-Reply-To: Subject: [GitHub] accumulo pull request #143: ACCUMULO-4428 Fix state of GC firstSeenDead map Content-Type: text/plain Message-Id: <20160829213739.5B5C2E0556@git1-us-west.apache.org> Date: Mon, 29 Aug 2016 21:37:39 +0000 (UTC) archived-at: Mon, 29 Aug 2016 21:37:41 -0000 Github user joshelser commented on a diff in the pull request: https://github.com/apache/accumulo/pull/143#discussion_r76692450 --- Diff: server/gc/src/main/java/org/apache/accumulo/gc/GarbageCollectWriteAheadLogs.java --- @@ -80,10 +80,10 @@ public class GarbageCollectWriteAheadLogs { private static final Logger log = LoggerFactory.getLogger(GarbageCollectWriteAheadLogs.class); + private static final Map firstSeenDead = new HashMap(); private final AccumuloServerContext context; private final VolumeManager fs; - private final Map firstSeenDead = new HashMap(); --- End diff -- +1 to capturing this in an integration test. You might be able to [use an existing test](https://github.com/apache/accumulo/blob/1.7/test/src/test/java/org/apache/accumulo/test/functional/RestartIT.java) as a starting point. There are test bindings which will make starting/stopping services simple. The tricky point will be identifying a WAL for a tserver before stopping it and then verifying that it does not get deleted after an amount of time greater than the GC's period. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---