cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bened...@apache.org
Subject [1/3] cassandra git commit: ninja fix SSTableReaderTest.testGetPositionsForRangesFromTableOpenedForBulkLoading with compression
Date Tue, 24 Feb 2015 14:35:15 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 766d8c010 -> 990f478c2
  refs/heads/trunk ec2c050ba -> 058e97720


ninja fix SSTableReaderTest.testGetPositionsForRangesFromTableOpenedForBulkLoading with compression


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/990f478c
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/990f478c
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/990f478c

Branch: refs/heads/cassandra-2.1
Commit: 990f478c24362dc5183c66d2c5a7e0a7ea8d83e0
Parents: 766d8c0
Author: Benedict Elliott Smith <benedict@apache.org>
Authored: Tue Feb 24 14:34:59 2015 +0000
Committer: Benedict Elliott Smith <benedict@apache.org>
Committed: Tue Feb 24 14:34:59 2015 +0000

----------------------------------------------------------------------
 test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/990f478c/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
index 9607673..a037599 100644
--- a/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/SSTableReaderTest.java
@@ -416,6 +416,8 @@ public class SSTableReaderTest extends SchemaLoader
 
         // re-open the same sstable as it would be during bulk loading
         Set<Component> components = Sets.newHashSet(Component.DATA, Component.PRIMARY_INDEX);
+        if (sstable.components.contains(Component.COMPRESSION_INFO))
+            components.add(Component.COMPRESSION_INFO);
         SSTableReader bulkLoaded = SSTableReader.openForBatch(sstable.descriptor, components,
store.metadata, sstable.partitioner);
         sections = bulkLoaded.getPositionsForRanges(ranges);
         assert sections.size() == 1 : "Expected to find range in sstable opened for bulk
loading";


Mime
View raw message