accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <>
Subject [GitHub] accumulo pull request #143: ACCUMULO-4428 Fix state of GC firstSeenDead map
Date Mon, 29 Aug 2016 21:37:39 GMT
Github user joshelser commented on a diff in the pull request:
    --- Diff: server/gc/src/main/java/org/apache/accumulo/gc/
    @@ -80,10 +80,10 @@
     public class GarbageCollectWriteAheadLogs {
       private static final Logger log = LoggerFactory.getLogger(GarbageCollectWriteAheadLogs.class);
    +  private static final Map<HostAndPort,Long> firstSeenDead = new HashMap<HostAndPort,Long>();
       private final AccumuloServerContext context;
       private final VolumeManager fs;
    -  private final Map<HostAndPort,Long> firstSeenDead = new HashMap<HostAndPort,Long>();
    --- End diff --
    +1 to capturing this in an integration test.
    You might be able to [use an existing test](
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 or file a JIRA ticket
with INFRA.

View raw message