10151
Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/941a5dd8 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/941a5dd8 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/941a5dd8 Branch: refs/heads/trunk Commit: 941a5dd8a1ca9b759e2091ca151bb339bc947c58 Parents: a6d6540 Author: Benedict Elliott Smith <bened...@apache.org> Authored: Fri Aug 21 10:50:36 2015 +0100 Committer: Benedict Elliott Smith <bened...@apache.org> Committed: Sun Aug 23 11:50:53 2015 +0100 ---------------------------------------------------------------------- test/unit/org/apache/cassandra/db/lifecycle/TrackerTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/941a5dd8/test/unit/org/apache/cassandra/db/lifecycle/TrackerTest.java ---------------------------------------------------------------------- diff --git a/test/unit/org/apache/cassandra/db/lifecycle/TrackerTest.java b/test/unit/org/apache/cassandra/db/lifecycle/TrackerTest.java index dbd5287..93b88b4 100644 --- a/test/unit/org/apache/cassandra/db/lifecycle/TrackerTest.java +++ b/test/unit/org/apache/cassandra/db/lifecycle/TrackerTest.java @@ -82,7 +82,7 @@ public class TrackerTest { ColumnFamilyStore cfs = MockSchema.newCFS(); Tracker tracker = new Tracker(cfs, false); - List<SSTableReader> readers = ImmutableList.of(MockSchema.sstable(0, cfs), MockSchema.sstable(1, cfs), MockSchema.sstable(2, cfs)); + List<SSTableReader> readers = ImmutableList.of(MockSchema.sstable(0, true, cfs), MockSchema.sstable(1, cfs), MockSchema.sstable(2, cfs)); tracker.addInitialSSTables(copyOf(readers)); Assert.assertNull(tracker.tryModify(ImmutableList.of(MockSchema.sstable(0, cfs)), OperationType.COMPACTION)); try (LifecycleTransaction txn = tracker.tryModify(readers.get(0), OperationType.COMPACTION);) @@ -97,6 +97,7 @@ public class TrackerTest Assert.assertNotNull(txn); Assert.assertEquals(0, txn.originals().size()); } + readers.get(0).selfRef().release(); } @Test