Skip to content

Commit c50faa5

Browse files
format with spotless apply
1 parent 4e83816 commit c50faa5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quarkus/service/src/test/java/org/apache/polaris/service/quarkus/task/BatchFileCleanupTaskHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public void testMetadataFileCleanupIfFileNotExist() throws IOException {
247247

248248
@ParameterizedTest
249249
@ValueSource(ints = {1, 2, 3})
250-
public void testCleanupWithRetries(int retryTime) throws IOException {
250+
public void testCleanupWithRetries(int maxRetries) throws IOException {
251251
PolarisCallContext polarisCallContext =
252252
new PolarisCallContext(
253253
metaStoreManagerFactory.getOrCreateSessionSupplier(realmContext).get(),
@@ -276,7 +276,7 @@ public CompletableFuture<Void> tryDelete(
276276
Boolean isConcurrent,
277277
Throwable e,
278278
int attempt) {
279-
if (attempt <= retryTime) {
279+
if (attempt <= maxRetries) {
280280
batchRetryCounter.incrementAndGet();
281281
return tryDelete(tableId, fileIO, files, type, isConcurrent, e, attempt + 1);
282282
} else {
@@ -324,7 +324,7 @@ public CompletableFuture<Void> tryDelete(
324324
future.join();
325325

326326
// Ensure that retries happened as expected
327-
assertThat(batchRetryCounter.get()).isEqualTo(retryTime);
327+
assertThat(batchRetryCounter.get()).isEqualTo(maxRetries);
328328

329329
// Check if the file was successfully deleted after retries
330330
assertThat(TaskUtils.exists(statisticsFile.path(), fileIO)).isFalse();

0 commit comments

Comments
 (0)