use of voldemort.store.StoreDefinition in project voldemort by voldemort.
the class RepartitionerTest method testZoneExpansionAsRepartitionerCLI.
@Test
public void testZoneExpansionAsRepartitionerCLI() {
Cluster currentCluster = ClusterTestUtils.getZZCluster();
List<StoreDefinition> currentStoreDefs = ClusterTestUtils.getZZStoreDefsInMemory();
Cluster interimCluster = ClusterTestUtils.getZZZClusterWithNNN();
List<StoreDefinition> finalStoreDefs = ClusterTestUtils.getZZZStoreDefsInMemory();
verifyBalanceZoneAndNode(currentCluster, currentStoreDefs, interimCluster, finalStoreDefs);
// verifyBalanceNodesNotZones does not make sense for zone expansion.
verifyRepartitionNoop(currentCluster, currentStoreDefs, interimCluster, finalStoreDefs);
}
use of voldemort.store.StoreDefinition in project voldemort by voldemort.
the class RepartitionerTest method testDeContig.
@Test
public void testDeContig() {
// Two zone cluster
Cluster currentCluster = ClusterTestUtils.getZZCluster();
List<StoreDefinition> storeDefs = ClusterTestUtils.getZZStoreDefsInMemory();
decontigRepartition(currentCluster, storeDefs);
// Three zone cluster
currentCluster = ClusterTestUtils.getZZZCluster();
storeDefs = ClusterTestUtils.getZZZStoreDefsInMemory();
decontigRepartition(currentCluster, storeDefs);
}
use of voldemort.store.StoreDefinition in project voldemort by voldemort.
the class RepartitionerTest method testZoneExpansionAsRebalanceControllerCLI.
@Test
public void testZoneExpansionAsRebalanceControllerCLI() {
Cluster currentCluster = ClusterTestUtils.getZZECluster();
List<StoreDefinition> currentStoreDefs = ClusterTestUtils.getZZZStoreDefsInMemory();
Cluster interimCluster = ClusterTestUtils.getZZZClusterWithNNN();
List<StoreDefinition> finalStoreDefs = ClusterTestUtils.getZZZStoreDefsInMemory();
verifyBalanceZoneAndNode(currentCluster, currentStoreDefs, interimCluster, finalStoreDefs);
// verifyBalanceNodesNotZones does not make sense for zone expansion.
verifyRepartitionNoop(currentCluster, currentStoreDefs, interimCluster, finalStoreDefs);
}
use of voldemort.store.StoreDefinition in project voldemort by voldemort.
the class RepartitionerTest method testClusterExpansion.
@Test
public void testClusterExpansion() {
// Two zone cluster
Cluster currentCluster = ClusterTestUtils.getZZCluster();
Cluster interimCluster = ClusterTestUtils.getZZClusterWithNN();
List<StoreDefinition> storeDefs = ClusterTestUtils.getZZStoreDefsInMemory();
verifyBalanceZoneAndNode(currentCluster, storeDefs, interimCluster, storeDefs);
verifyBalanceNodesNotZones(currentCluster, storeDefs, interimCluster, storeDefs);
verifyRepartitionNoop(currentCluster, storeDefs, interimCluster, storeDefs);
// Three zone cluster
currentCluster = ClusterTestUtils.getZZZCluster();
interimCluster = ClusterTestUtils.getZZZClusterWithNNN();
storeDefs = ClusterTestUtils.getZZZStoreDefsInMemory();
verifyBalanceZoneAndNode(currentCluster, storeDefs, interimCluster, storeDefs);
verifyBalanceNodesNotZones(currentCluster, storeDefs, interimCluster, storeDefs);
verifyRepartitionNoop(currentCluster, storeDefs, interimCluster, storeDefs);
}
use of voldemort.store.StoreDefinition in project voldemort by voldemort.
the class StoreDefinitionMapperTest method testCompressedStore.
public void testCompressedStore() {
StoreDefinitionsMapper mapper = new StoreDefinitionsMapper();
List<StoreDefinition> storeDefs = mapper.readStoreList(new StringReader(VoldemortTestConstants.getCompressedStoreDefinitionsXml()));
String written = mapper.writeStoreList(storeDefs);
assertEquals(storeDefs, mapper.readStoreList(new StringReader(written)));
}
Aggregations