Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Sourav Maji committed Feb 11, 2025
1 parent 7c673ea commit 14c77c1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.linkedin.venice.endToEnd;

import static com.linkedin.davinci.store.rocksdb.RocksDBServerConfig.ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES;
import static com.linkedin.davinci.store.rocksdb.RocksDBServerConfig.ROCKSDB_MEMTABLE_SIZE_IN_BYTES;
import static com.linkedin.davinci.store.rocksdb.RocksDBServerConfig.ROCKSDB_TOTAL_MEMTABLE_USAGE_CAP_IN_BYTES;
import static com.linkedin.venice.ConfigKeys.CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS;
Expand Down Expand Up @@ -143,6 +144,7 @@ private VeniceProperties getDaVinciBackendConfig(
.put(D2_ZK_HOSTS_ADDRESS, veniceCluster.getZk().getAddress())
.put(CLUSTER_DISCOVERY_D2_SERVICE, VeniceRouterWrapper.CLUSTER_DISCOVERY_D2_SERVICE_NAME)
.put(ROCKSDB_MEMTABLE_SIZE_IN_BYTES, "2MB")
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 4 * 1024 * 1024L)
.put(ROCKSDB_TOTAL_MEMTABLE_USAGE_CAP_IN_BYTES, "10MB")
.put(INGESTION_MEMORY_LIMIT_STORE_LIST, String.join(",", memoryLimitStores))
.put(USE_DA_VINCI_SPECIFIC_EXECUTION_STATUS_FOR_ERROR, useDaVinciSpecificExecutionStatusForError);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.linkedin.venice.endToEnd;

import static com.linkedin.davinci.store.rocksdb.RocksDBServerConfig.ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES;
import static com.linkedin.davinci.store.rocksdb.RocksDBServerConfig.ROCKSDB_PLAIN_TABLE_FORMAT_ENABLED;
import static com.linkedin.venice.ConfigKeys.BLOB_TRANSFER_MANAGER_ENABLED;
import static com.linkedin.venice.ConfigKeys.CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS;
Expand Down Expand Up @@ -193,6 +194,7 @@ public void testConcurrentGetAndStart() throws Exception {
VeniceProperties backendConfig = new PropertyBuilder().put(CLIENT_USE_SYSTEM_STORE_REPOSITORY, true)
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, baseDataPath)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(PERSISTENCE_TYPE, ROCKS_DB)
.build();

Expand Down Expand Up @@ -261,6 +263,7 @@ public void testBatchStore(DaVinciConfig clientConfig) throws Exception {
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, baseDataPath)
.put(PERSISTENCE_TYPE, ROCKS_DB)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(DA_VINCI_CURRENT_VERSION_BOOTSTRAPPING_SPEEDUP_ENABLED, true)
.put(PUSH_STATUS_STORE_ENABLED, true)
.put(DAVINCI_PUSH_STATUS_CHECK_INTERVAL_IN_MS, 1000)
Expand Down Expand Up @@ -381,6 +384,7 @@ public void testIncrementalPushStatusBatching(boolean isIngestionIsolated) throw
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, Utils.getTempDataDirectory().getAbsolutePath())
.put(PERSISTENCE_TYPE, ROCKS_DB)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(PUSH_STATUS_STORE_ENABLED, true)
.put(DAVINCI_PUSH_STATUS_CHECK_INTERVAL_IN_MS, 1000)
.build();
Expand Down Expand Up @@ -458,6 +462,7 @@ public void testObjectReuse(DaVinciConfig clientConfig) throws Exception {
// TODO: Looks like cache = null does not work with fast meta store repository refresh interval
// .put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, baseDataPath)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(PERSISTENCE_TYPE, ROCKS_DB)
.build();

Expand Down Expand Up @@ -710,6 +715,7 @@ public void testHybridStoreWithoutIngestionIsolation(DaVinciConfig daVinciConfig
VeniceProperties backendConfig = new PropertyBuilder().put(CLIENT_USE_SYSTEM_STORE_REPOSITORY, true)
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, Utils.getTempDataDirectory().getAbsolutePath())
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(PERSISTENCE_TYPE, ROCKS_DB)
.build();

Expand Down Expand Up @@ -774,6 +780,7 @@ public void testHybridStore() throws Exception {
VeniceProperties backendConfig = new PropertyBuilder().put(CLIENT_USE_SYSTEM_STORE_REPOSITORY, true)
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, Utils.getTempDataDirectory().getAbsolutePath())
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(PERSISTENCE_TYPE, ROCKS_DB)
.build();

Expand Down Expand Up @@ -1003,6 +1010,7 @@ public void testBootstrapSubscription(DaVinciConfig daVinciConfig) throws Except
.put(DA_VINCI_CURRENT_VERSION_BOOTSTRAPPING_SPEEDUP_ENABLED, true)
.put(PUSH_STATUS_STORE_ENABLED, true)
.put(DAVINCI_PUSH_STATUS_CHECK_INTERVAL_IN_MS, 1000)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(DA_VINCI_SUBSCRIBE_ON_DISK_PARTITIONS_AUTOMATICALLY, false)
.build();

Expand Down Expand Up @@ -1064,7 +1072,8 @@ public void testBootstrapSubscription(DaVinciConfig daVinciConfig) throws Except
@Test(timeOut = TEST_TIMEOUT, dataProvider = "dv-client-config-provider", dataProviderClass = DataProviderUtils.class)
public void testPartialSubscription(DaVinciConfig daVinciConfig) throws Exception {
String storeName = createStoreWithMetaSystemStoreAndPushStatusSystemStore(KEY_COUNT);
VeniceProperties backendConfig = new PropertyBuilder().build();
VeniceProperties backendConfig =
new PropertyBuilder().put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L).build();

Set<Integer> keySet = new HashSet<>();
for (int i = 0; i < KEY_COUNT; ++i) {
Expand Down Expand Up @@ -1187,6 +1196,7 @@ public void testCrashedDaVinciWithIngestionIsolation() throws Exception {
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.put(DATA_BASE_PATH, baseDataPath)
.put(PERSISTENCE_TYPE, ROCKS_DB)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(D2_ZK_HOSTS_ADDRESS, zkHosts)
.build();

Expand Down Expand Up @@ -1265,6 +1275,7 @@ public void testBlobP2PTransferAmongDVC() throws Exception {
.put(DAVINCI_P2P_BLOB_TRANSFER_SERVER_PORT, port2)
.put(DAVINCI_P2P_BLOB_TRANSFER_CLIENT_PORT, port1)
.put(PUSH_STATUS_STORE_ENABLED, true)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(DAVINCI_PUSH_STATUS_SCAN_INTERVAL_IN_SECONDS, 1)
.put(BLOB_TRANSFER_MANAGER_ENABLED, true);
VeniceProperties backendConfig2 = configBuilder.build();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.linkedin.venice.endToEnd;

import static com.linkedin.davinci.store.rocksdb.RocksDBServerConfig.ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES;
import static com.linkedin.venice.ConfigKeys.CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS;
import static com.linkedin.venice.ConfigKeys.CLIENT_USE_SYSTEM_STORE_REPOSITORY;
import static com.linkedin.venice.ConfigKeys.DATA_BASE_PATH;
Expand Down Expand Up @@ -166,6 +167,7 @@ public void testMultiClusterDaVinci() throws Exception {
new PropertyBuilder().put(DATA_BASE_PATH, Utils.getTempDataDirectory().getAbsolutePath())
.put(PERSISTENCE_TYPE, PersistenceType.ROCKS_DB)
.put(CLIENT_USE_SYSTEM_STORE_REPOSITORY, true)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.build();
DaVinciConfig daVinciConfig = new DaVinciConfig();
Expand Down Expand Up @@ -320,6 +322,7 @@ public void testDaVinciVersionSwap() throws Exception {
new PropertyBuilder().put(DATA_BASE_PATH, Utils.getTempDataDirectory().getAbsolutePath())
.put(PERSISTENCE_TYPE, PersistenceType.ROCKS_DB)
.put(CLIENT_USE_SYSTEM_STORE_REPOSITORY, true)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.build();
D2Client daVinciD2 = D2TestUtils.getAndStartD2Client(multiClusterVenice.getZkServerWrapper().getAddress());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ public void testBatchOnlyMaterializedViewDVCConsumer() throws IOException, Execu
new PropertyBuilder().put(DATA_BASE_PATH, Utils.getTempDataDirectory().getAbsolutePath())
.put(PERSISTENCE_TYPE, PersistenceType.ROCKS_DB)
.put(CLIENT_USE_SYSTEM_STORE_REPOSITORY, true)
.put(ROCKSDB_BLOCK_CACHE_SIZE_IN_BYTES, 2 * 1024 * 1024L)
.put(CLIENT_SYSTEM_STORE_REPOSITORY_REFRESH_INTERVAL_SECONDS, 1)
.build();
D2Client daVinciD2SourceFabric = D2TestUtils
Expand Down

0 comments on commit 14c77c1

Please sign in to comment.