|
38 | 38 |
|
39 | 39 | import com.google.common.collect.ImmutableList; |
40 | 40 | import com.google.common.collect.ImmutableMap; |
| 41 | +import org.junit.Assume; |
41 | 42 | import org.junit.Before; |
42 | 43 | import org.junit.Ignore; |
43 | 44 | import org.junit.Rule; |
@@ -569,6 +570,10 @@ public void testConcurrentWriters() throws Exception |
569 | 570 | @SuppressWarnings("unchecked") |
570 | 571 | public void testWritesWithUdts() throws Exception |
571 | 572 | { |
| 573 | + Assume.assumeTrue("Skip test when using DaemonInitialization with Murmur3Partitioner", |
| 574 | + !DatabaseDescriptor.isDaemonInitialized() |
| 575 | + || !(DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner)); |
| 576 | + |
572 | 577 | final String schema = "CREATE TABLE " + qualifiedTable + " (" |
573 | 578 | + " k int," |
574 | 579 | + " v1 list<frozen<tuple2>>," |
@@ -639,6 +644,10 @@ public void testWritesWithUdts() throws Exception |
639 | 644 | @SuppressWarnings("unchecked") |
640 | 645 | public void testWritesWithDependentUdts() throws Exception |
641 | 646 | { |
| 647 | + Assume.assumeTrue("Skip test when using DaemonInitialization with Murmur3Partitioner", |
| 648 | + !DatabaseDescriptor.isDaemonInitialized() |
| 649 | + || !(DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner)); |
| 650 | + |
642 | 651 | final String schema = "CREATE TABLE " + qualifiedTable + " (" |
643 | 652 | + " k int," |
644 | 653 | + " v1 frozen<nested_tuple>," |
@@ -699,6 +708,10 @@ public void testWritesWithDependentUdts() throws Exception |
699 | 708 | @Test |
700 | 709 | public void testUnsetValues() throws Exception |
701 | 710 | { |
| 711 | + Assume.assumeTrue("Skip test when using DaemonInitialization with Murmur3Partitioner", |
| 712 | + !DatabaseDescriptor.isDaemonInitialized() |
| 713 | + || !(DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner)); |
| 714 | + |
702 | 715 | final String schema = "CREATE TABLE " + qualifiedTable + " (" |
703 | 716 | + " k int," |
704 | 717 | + " c1 int," |
@@ -1238,6 +1251,10 @@ public void testWriteWithTimestampsAndTtl() throws Exception |
1238 | 1251 | @Test |
1239 | 1252 | public void testWriteWithSorted() throws Exception |
1240 | 1253 | { |
| 1254 | + Assume.assumeTrue("Skip test when using DaemonInitialization with Murmur3Partitioner", |
| 1255 | + !DatabaseDescriptor.isDaemonInitialized() |
| 1256 | + || !(DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner)); |
| 1257 | + |
1241 | 1258 | String schema = "CREATE TABLE " + qualifiedTable + " (" |
1242 | 1259 | + " k int PRIMARY KEY," |
1243 | 1260 | + " v blob )"; |
@@ -1269,6 +1286,10 @@ public void testWriteWithSorted() throws Exception |
1269 | 1286 | @Test |
1270 | 1287 | public void testWriteWithSortedAndMaxSize() throws Exception |
1271 | 1288 | { |
| 1289 | + Assume.assumeTrue("Skip test when using DaemonInitialization with Murmur3Partitioner", |
| 1290 | + !DatabaseDescriptor.isDaemonInitialized() |
| 1291 | + || !(DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner)); |
| 1292 | + |
1272 | 1293 | String schema = "CREATE TABLE " + qualifiedTable + " (" |
1273 | 1294 | + " k int PRIMARY KEY," |
1274 | 1295 | + " v blob )"; |
@@ -1359,6 +1380,9 @@ private void testWriters(String table1, String table2) throws IOException, Inval |
1359 | 1380 | @Test |
1360 | 1381 | public void testWriteWithSAI() throws Exception |
1361 | 1382 | { |
| 1383 | + Assume.assumeTrue("Skip test when using DaemonInitialization without Murmur3Partitioner", |
| 1384 | + !DatabaseDescriptor.isDaemonInitialized() |
| 1385 | + || DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner); |
1362 | 1386 | writeWithSaiInternal(); |
1363 | 1387 | writeWithSaiInternal(); |
1364 | 1388 | } |
@@ -1410,6 +1434,10 @@ private void writeWithSaiInternal() throws Exception |
1410 | 1434 | @Test |
1411 | 1435 | public void testSkipBuildingIndexesWithSAI() throws Exception |
1412 | 1436 | { |
| 1437 | + Assume.assumeTrue("Skip test when using DaemonInitialization without Murmur3Partitioner", |
| 1438 | + !DatabaseDescriptor.isDaemonInitialized() |
| 1439 | + || DatabaseDescriptor.getPartitioner() instanceof Murmur3Partitioner); |
| 1440 | + |
1413 | 1441 | String schema = "CREATE TABLE " + qualifiedTable + " (" |
1414 | 1442 | + " k int PRIMARY KEY," |
1415 | 1443 | + " v1 text," |
|
0 commit comments