Skip to content

Commit

Permalink
Remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
sandynz committed Sep 20, 2023
1 parent 8a6daa0 commit c2422e6
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.concurrent.atomic.AtomicReference;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

/**
* Pipeline data source sink.
Expand Down Expand Up @@ -274,10 +272,7 @@ private void executeBatchDelete(final Connection connection, final List<DataReco
}
preparedStatement.addBatch();
}
int[] counts = preparedStatement.executeBatch();
if (IntStream.of(counts).anyMatch(value -> 1 != value)) {
log.warn("batchDelete failed, counts={}, sql={}, dataRecords={}", Arrays.toString(counts), deleteSQL, dataRecords);
}
preparedStatement.executeBatch();
} finally {
batchDeleteStatement.set(null);
}
Expand Down

0 comments on commit c2422e6

Please sign in to comment.