Skip to content

Commit

Permalink
Fixed some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiSernLim committed Feb 24, 2025
1 parent 6a4e7ed commit edd31be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,7 +1129,6 @@ private StoreIngestionTaskFactory.Builder getIngestionTaskFactoryBuilder(
.setPubSubTopicRepository(pubSubTopicRepository)
.setPartitionStateSerializer(partitionStateSerializer)
.setRunnableForKillIngestionTasksForNonCurrentVersions(runnableForKillNonCurrentVersion)
.setDivChunkAssembler(divChunkAssembler)
.setAAWCWorkLoadProcessingThreadPool(
Executors.newFixedThreadPool(2, new DaemonThreadFactory("AA_WC_PARALLEL_PROCESSING")))
.setAAWCIngestionStorageLookupThreadPool(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.linkedin.venice.guid.GuidUtils;
import com.linkedin.venice.integration.utils.PubSubBrokerWrapper;
import com.linkedin.venice.integration.utils.ServiceFactory;
import com.linkedin.venice.integration.utils.VeniceClusterCreateOptions;
import com.linkedin.venice.integration.utils.VeniceClusterWrapper;
import com.linkedin.venice.kafka.protocol.GUID;
import com.linkedin.venice.kafka.protocol.state.GlobalRtDivState;
Expand Down Expand Up @@ -63,7 +64,16 @@ public void setUp() {
extraProperties.setProperty(SERVER_PROMOTION_TO_LEADER_REPLICA_DELAY_SECONDS, Long.toString(1L));

// N.B.: RF 2 with 3 servers is important, in order to test both the leader and follower code paths
sharedVenice = ServiceFactory.getVeniceCluster(1, 0, 0, 2, 1000000, false, false, extraProperties);
sharedVenice = ServiceFactory.getVeniceCluster(
new VeniceClusterCreateOptions.Builder().numberOfControllers(1)
.numberOfServers(0)
.numberOfRouters(0)
.replicationFactor(2)
.partitionSize(1000000)
.sslToStorageNodes(false)
.sslToKafka(false)
.extraProperties(extraProperties)
.build());

Properties routerProperties = new Properties();

Expand Down

0 comments on commit edd31be

Please sign in to comment.