We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ae888 commit 9371b9dCopy full SHA for 9371b9d
hbase/hbase-sink/src/main/java/com/dtstack/flink/sql/sink/hbase/HbaseOutputFormat.java
@@ -166,12 +166,13 @@ public void writeRecord(Tuple2 tuple2) {
166
protected void dealInsert(Row record) {
167
Put put = getPutByRow(record);
168
if (put == null || put.isEmpty()) {
169
+ outDirtyRecords.inc();
170
return;
171
}
172
173
try {
174
table.put(put);
- } catch (IOException e) {
175
+ } catch (Exception e) {
176
if (outDirtyRecords.getCount() % DIRTY_PRINT_FREQUENCY == 0 || LOG.isDebugEnabled()) {
177
LOG.error("record insert failed ..{}", record.toString());
178
LOG.error("", e);
0 commit comments