Skip to content

Commit

Permalink
[Fix] [Connectors-v2-file-ftp] rollback ExcelWriteStrategy (apache#6077)
Browse files Browse the repository at this point in the history
  • Loading branch information
xumingbei committed Dec 27, 2023
1 parent a1bf201 commit 664ba37
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public void finishAndCloseFile() {
fileOutputStream.close();
} catch (IOException e) {
throw new FileConnectorException(
CommonErrorCodeDeprecated.FILE_OPERATION_FAILED, e);
CommonErrorCodeDeprecated.FILE_OPERATION_FAILED,
"can not get output file stream");
}
needMoveFiles.put(k, getTargetLocation(k));
});
Expand All @@ -69,7 +70,7 @@ private ExcelGenerator getOrCreateExcelGenerator(@NonNull String filePath) {
ExcelGenerator excelGenerator = this.beingWrittenWriter.get(filePath);
if (excelGenerator == null) {
excelGenerator =
new ExcelGenerator(sinkColumnsIndexInRow, seaTunnelRowType, fileSinkConfig);
new ExcelGenerator(sinkColumnsIndexInRow, seaTunnelRowType, fileSinkConfig);
this.beingWrittenWriter.put(filePath, excelGenerator);
}
return excelGenerator;
Expand Down

0 comments on commit 664ba37

Please sign in to comment.