@@ -185,7 +185,7 @@ static File initV2LedgerDirectoryWithIndexDir(File ledgerDir, File indexDir) thr
185
185
return ledgerDir ;
186
186
}
187
187
188
- private static void testUpgradeProceedure (String zkServers , String journalDir , String ledgerDir , String indexDir )
188
+ private static void testUpgradeProcedure (String zkServers , String journalDir , String ledgerDir , String indexDir )
189
189
throws Exception {
190
190
ServerConfiguration conf = TestBKConfiguration .newServerConfiguration ();
191
191
conf .setMetadataServiceUri ("zk://" + zkServers + "/ledgers" );
@@ -250,7 +250,7 @@ private static void testUpgradeProceedure(String zkServers, String journalDir, S
250
250
public void testUpgradeV1toCurrent () throws Exception {
251
251
File journalDir = initV1JournalDirectory (tmpDirs .createNew ("bookie" , "journal" ));
252
252
File ledgerDir = initV1LedgerDirectory (tmpDirs .createNew ("bookie" , "ledger" ));
253
- testUpgradeProceedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
253
+ testUpgradeProcedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
254
254
ledgerDir .getPath (), ledgerDir .getPath ());
255
255
}
256
256
@@ -260,7 +260,7 @@ public void testUpgradeV1toCurrentWithIndexDir() throws Exception {
260
260
File indexDir = tmpDirs .createNew ("bookie" , "index" );
261
261
File ledgerDir = initV1LedgerDirectoryWithIndexDir (
262
262
tmpDirs .createNew ("bookie" , "ledger" ), indexDir );
263
- testUpgradeProceedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
263
+ testUpgradeProcedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
264
264
ledgerDir .getPath (), indexDir .getPath ());
265
265
}
266
266
@@ -269,7 +269,7 @@ public void testUpgradeV2toCurrent() throws Exception {
269
269
File journalDir = initV2JournalDirectory (tmpDirs .createNew ("bookie" , "journal" ));
270
270
File ledgerDir = initV2LedgerDirectory (tmpDirs .createNew ("bookie" , "ledger" ));
271
271
File indexDir = tmpDirs .createNew ("bookie" , "index" );
272
- testUpgradeProceedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
272
+ testUpgradeProcedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
273
273
ledgerDir .getPath (), indexDir .getPath ());
274
274
}
275
275
@@ -279,7 +279,7 @@ public void testUpgradeV2toCurrentWithIndexDir() throws Exception {
279
279
File indexDir = tmpDirs .createNew ("bookie" , "index" );
280
280
File ledgerDir = initV2LedgerDirectoryWithIndexDir (
281
281
tmpDirs .createNew ("bookie" , "ledger" ), indexDir );
282
- testUpgradeProceedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
282
+ testUpgradeProcedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
283
283
ledgerDir .getPath (), indexDir .getPath ());
284
284
}
285
285
@@ -304,7 +304,7 @@ public void testUpgradeCurrent(boolean hasIndexDir) throws Exception {
304
304
initV2LedgerDirectory (ledgerDir );
305
305
}
306
306
307
- testUpgradeProceedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
307
+ testUpgradeProcedure (zkUtil .getZooKeeperConnectString (), journalDir .getPath (),
308
308
ledgerDir .getPath (), indexDir .getPath ());
309
309
310
310
// Upgrade again
0 commit comments