-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into run_int_test_with_any_jdk
- Loading branch information
Showing
68 changed files
with
2,470 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...test/java/com/scalar/db/storage/cassandra/CassandraCrossPartitionScanIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package com.scalar.db.storage.cassandra; | ||
|
||
import com.scalar.db.api.DistributedStorageCrossPartitionScanIntegrationTestBase; | ||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class CassandraCrossPartitionScanIntegrationTest | ||
extends DistributedStorageCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProperties(String testName) { | ||
return CassandraEnv.getProperties(testName); | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return Collections.singletonMap(CassandraAdmin.REPLICATION_FACTOR, "1"); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in Cassandra") | ||
public void scan_WithOrderingForNonPrimaryColumns_ShouldReturnProperResult() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...r/db/storage/cassandra/ConsensusCommitCrossPartitionScanIntegrationTestWithCassandra.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.scalar.db.storage.cassandra; | ||
|
||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; | ||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitCrossPartitionScanIntegrationTestBase; | ||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class ConsensusCommitCrossPartitionScanIntegrationTestWithCassandra | ||
extends ConsensusCommitCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProps(String testName) { | ||
Properties properties = CassandraEnv.getProperties(testName); | ||
properties.setProperty(ConsensusCommitConfig.ISOLATION_LEVEL, "SERIALIZABLE"); | ||
return properties; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return Collections.singletonMap(CassandraAdmin.REPLICATION_FACTOR, "1"); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in Cassandra") | ||
public void scan_CrossPartitionScanWithOrderingGivenForCommittedRecord_ShouldReturnRecords() {} | ||
} |
30 changes: 30 additions & 0 deletions
30
...rage/cassandra/TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestWithCassandra.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.scalar.db.storage.cassandra; | ||
|
||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; | ||
import com.scalar.db.transaction.consensuscommit.TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase; | ||
import java.util.Collections; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestWithCassandra | ||
extends TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProps1(String testName) { | ||
Properties properties = CassandraEnv.getProperties(testName); | ||
properties.setProperty(ConsensusCommitConfig.ISOLATION_LEVEL, "SERIALIZABLE"); | ||
return properties; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return Collections.singletonMap(CassandraAdmin.REPLICATION_FACTOR, "1"); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in Cassandra") | ||
public void scan_ScanWithOrderingGivenForCommittedRecord_ShouldReturnRecords() {} | ||
} |
29 changes: 29 additions & 0 deletions
29
.../scalar/db/storage/cosmos/ConsensusCommitCrossPartitionScanIntegrationTestWithCosmos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.scalar.db.storage.cosmos; | ||
|
||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; | ||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitCrossPartitionScanIntegrationTestBase; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class ConsensusCommitCrossPartitionScanIntegrationTestWithCosmos | ||
extends ConsensusCommitCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProps(String testName) { | ||
Properties properties = CosmosEnv.getProperties(testName); | ||
properties.setProperty(ConsensusCommitConfig.ISOLATION_LEVEL, "SERIALIZABLE"); | ||
return properties; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return CosmosEnv.getCreationOptions(); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in Cosmos DB") | ||
public void scan_CrossPartitionScanWithOrderingGivenForCommittedRecord_ShouldReturnRecords() {} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ation-test/java/com/scalar/db/storage/cosmos/CosmosCrossPartitionScanIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.scalar.db.storage.cosmos; | ||
|
||
import com.scalar.db.api.DistributedStorageCrossPartitionScanIntegrationTestBase; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class CosmosCrossPartitionScanIntegrationTest | ||
extends DistributedStorageCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProperties(String testName) { | ||
return CosmosEnv.getProperties(testName); | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return CosmosEnv.getCreationOptions(); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in Cosmos DB") | ||
public void scan_WithOrderingForNonPrimaryColumns_ShouldReturnProperResult() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...db/storage/cosmos/TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestWithCosmos.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.scalar.db.storage.cosmos; | ||
|
||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; | ||
import com.scalar.db.transaction.consensuscommit.TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestWithCosmos | ||
extends TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProps1(String testName) { | ||
Properties properties = CosmosEnv.getProperties(testName); | ||
properties.setProperty(ConsensusCommitConfig.ISOLATION_LEVEL, "SERIALIZABLE"); | ||
return properties; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return CosmosEnv.getCreationOptions(); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in Cosmos DB") | ||
public void scan_ScanWithOrderingGivenForCommittedRecord_ShouldReturnRecords() {} | ||
} |
29 changes: 29 additions & 0 deletions
29
.../scalar/db/storage/dynamo/ConsensusCommitCrossPartitionScanIntegrationTestWithDynamo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.scalar.db.storage.dynamo; | ||
|
||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; | ||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitCrossPartitionScanIntegrationTestBase; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class ConsensusCommitCrossPartitionScanIntegrationTestWithDynamo | ||
extends ConsensusCommitCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProps(String testName) { | ||
Properties properties = DynamoEnv.getProperties(testName); | ||
properties.setProperty(ConsensusCommitConfig.ISOLATION_LEVEL, "SERIALIZABLE"); | ||
return properties; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return DynamoEnv.getCreationOptions(); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in DynamoDB") | ||
public void scan_CrossPartitionScanWithOrderingGivenForCommittedRecord_ShouldReturnRecords() {} | ||
} |
26 changes: 26 additions & 0 deletions
26
...ation-test/java/com/scalar/db/storage/dynamo/DynamoCrossPartitionScanIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.scalar.db.storage.dynamo; | ||
|
||
import com.scalar.db.api.DistributedStorageCrossPartitionScanIntegrationTestBase; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class DynamoCrossPartitionScanIntegrationTest | ||
extends DistributedStorageCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProperties(String testName) { | ||
return DynamoEnv.getProperties(testName); | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return DynamoEnv.getCreationOptions(); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in DynamoDB") | ||
public void scan_WithOrderingForNonPrimaryColumns_ShouldReturnProperResult() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...db/storage/dynamo/TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestWithDynamo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.scalar.db.storage.dynamo; | ||
|
||
import com.scalar.db.transaction.consensuscommit.ConsensusCommitConfig; | ||
import com.scalar.db.transaction.consensuscommit.TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase; | ||
import java.util.Map; | ||
import java.util.Properties; | ||
import org.junit.jupiter.api.Disabled; | ||
import org.junit.jupiter.api.Test; | ||
|
||
public class TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestWithDynamo | ||
extends TwoPhaseConsensusCommitCrossPartitionScanIntegrationTestBase { | ||
|
||
@Override | ||
protected Properties getProps1(String testName) { | ||
Properties properties = DynamoEnv.getProperties(testName); | ||
properties.setProperty(ConsensusCommitConfig.ISOLATION_LEVEL, "SERIALIZABLE"); | ||
return properties; | ||
} | ||
|
||
@Override | ||
protected Map<String, String> getCreationOptions() { | ||
return DynamoEnv.getCreationOptions(); | ||
} | ||
|
||
@Test | ||
@Override | ||
@Disabled("Cross partition scan with ordering is not supported in DynamoDB") | ||
public void scan_ScanWithOrderingGivenForCommittedRecord_ShouldReturnRecords() {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.