Skip to content

Commit a3ae85e

Browse files
committed
Spotbugs issue fixed
1 parent 72d5907 commit a3ae85e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

data-loader/cli/src/main/java/com/scalar/db/dataloader/cli/command/dataexport/ExportCommand.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public Integer call() throws Exception {
7272

7373
ExportManager exportManager =
7474
createExportManager(scalarDbMode, scalarDbDao, outputFormat, scalarDbPropertiesFilePath);
75-
System.out.println(scalarDbMode);
7675
TableMetadata tableMetadata = tableMetadataService.getTableMetadata(namespace, table);
7776

7877
Key partitionKey =

data-loader/core/src/main/java/com/scalar/db/dataloader/core/dataexport/ExportManager.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,15 @@ public ExportReport startExport(
145145

146146
shutdownExecutor(executorService);
147147
processFooter(exportOptions, tableMetadata, bufferedWriter);
148+
} catch (TransactionException e) {
149+
throw new RuntimeException(e);
148150
}
149151

150-
} catch (Exception e) {
151-
logger.error("Export failed", e);
152+
} catch (ExportOptionsValidationException
153+
| IOException
154+
| ScalarDbDaoException
155+
| InterruptedException e) {
156+
logger.error("Error during export: {}", e.getMessage());
152157
} finally {
153158
if (executorService != null && !executorService.isShutdown()) {
154159
executorService.shutdownNow();

0 commit comments

Comments
 (0)