Skip to content

Commit 6d25841

Browse files
committed
apply suggestions
1 parent d7de972 commit 6d25841

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

data-loader/core/src/main/java/com/scalar/db/dataloader/core/dataimport/processor/ImportProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ private ImportTransactionBatchResult processTransactionBatch(
333333
}
334334
error = e.getMessage();
335335
} catch (Exception e) {
336-
// Catch unknown exceptions
336+
// Catch unchecked exceptions
337337
isSuccess = false;
338338
logger.error(
339339
"Unexpected exception occurred while processing transaction batch {} in data chunk {}.",

data-loader/core/src/test/java/com/scalar/db/dataloader/core/dataimport/processor/ImportProcessorTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,6 @@ void process_withUnexpectedExceptionInTransaction_shouldHandleGracefully()
285285
assertFalse(result.isSuccess());
286286
assertEquals(0, result.getTransactionBatchId());
287287
assertEquals(1, result.getDataChunkId());
288-
assertTrue(result.getErrors().get(0).contains("Unexpected error: RuntimeException"));
289288
assertTrue(result.getErrors().get(0).contains("Unexpected error"));
290289
}
291290

0 commit comments

Comments
 (0)