@@ -144,14 +144,10 @@ public class DaVinciClientTest {
144
144
private VeniceClusterWrapper cluster ;
145
145
private D2Client d2Client ;
146
146
private PubSubProducerAdapterFactory pubSubProducerAdapterFactory ;
147
- private File inputDir ;
148
- private String inputDirPath ;
149
147
150
148
@ BeforeClass
151
149
public void setUp () {
152
150
Utils .thisIsLocalhost ();
153
- inputDir = getTempDataDirectory ();
154
- inputDirPath = "file://" + inputDir .getAbsolutePath ();
155
151
Properties clusterConfig = new Properties ();
156
152
clusterConfig .put (SERVER_PROMOTION_TO_LEADER_REPLICA_DELAY_SECONDS , 1L );
157
153
clusterConfig .put (PUSH_STATUS_STORE_ENABLED , true );
@@ -1616,6 +1612,8 @@ private void setUpStore(
1616
1612
boolean chunkingEnabled = false ;
1617
1613
CompressionStrategy compressionStrategy = CompressionStrategy .NO_OP ;
1618
1614
1615
+ File inputDir = getTempDataDirectory ();
1616
+
1619
1617
Runnable writeAvroFileRunnable = () -> {
1620
1618
try {
1621
1619
writeSimpleAvroFileWithIntToStringSchema (inputDir );
@@ -1632,7 +1630,8 @@ private void setUpStore(
1632
1630
chunkingEnabled ,
1633
1631
compressionStrategy ,
1634
1632
writeAvroFileRunnable ,
1635
- valueSchema );
1633
+ valueSchema ,
1634
+ inputDir );
1636
1635
}
1637
1636
1638
1637
/*
@@ -1649,6 +1648,9 @@ private void setUpStore(
1649
1648
int numKeys ) {
1650
1649
Consumer <UpdateStoreQueryParams > paramsConsumer = params -> {};
1651
1650
Consumer <Properties > propertiesConsumer = properties -> {};
1651
+
1652
+ File inputDir = getTempDataDirectory ();
1653
+
1652
1654
Runnable writeAvroFileRunnable = () -> {
1653
1655
try {
1654
1656
writeSimpleAvroFileWithIntToStringSchema (inputDir , customValue , numKeys );
@@ -1665,7 +1667,8 @@ private void setUpStore(
1665
1667
chunkingEnabled ,
1666
1668
compressionStrategy ,
1667
1669
writeAvroFileRunnable ,
1668
- valueSchema );
1670
+ valueSchema ,
1671
+ inputDir );
1669
1672
}
1670
1673
1671
1674
/*
@@ -1681,6 +1684,8 @@ private void setUpStore(
1681
1684
int numKeys ) {
1682
1685
Consumer <UpdateStoreQueryParams > paramsConsumer = params -> {};
1683
1686
Consumer <Properties > propertiesConsumer = properties -> {};
1687
+
1688
+ File inputDir = getTempDataDirectory ();
1684
1689
Runnable writeAvroFileRunnable = () -> {
1685
1690
try {
1686
1691
writeSimpleAvroFileWithIntToIntSchema (inputDir , numKeys );
@@ -1697,7 +1702,8 @@ private void setUpStore(
1697
1702
chunkingEnabled ,
1698
1703
compressionStrategy ,
1699
1704
writeAvroFileRunnable ,
1700
- valueSchema );
1705
+ valueSchema ,
1706
+ inputDir );
1701
1707
}
1702
1708
1703
1709
private void setUpStore (
@@ -1708,11 +1714,13 @@ private void setUpStore(
1708
1714
boolean chunkingEnabled ,
1709
1715
CompressionStrategy compressionStrategy ,
1710
1716
Runnable writeAvroFileRunnable ,
1711
- String valueSchema ) {
1717
+ String valueSchema ,
1718
+ File inputDir ) {
1712
1719
// Produce input data.
1713
1720
writeAvroFileRunnable .run ();
1714
1721
1715
1722
// Setup VPJ job properties.
1723
+ String inputDirPath = "file://" + inputDir .getAbsolutePath ();
1716
1724
Properties vpjProperties = defaultVPJProps (cluster , inputDirPath , storeName );
1717
1725
propertiesConsumer .accept (vpjProperties );
1718
1726
// Create & update store for test.
0 commit comments