inlong icon indicating copy to clipboard operation
inlong copied to clipboard

[Bug][Sort] When use multiple flink sink to iceberg, it happends NPE

Open hejiay opened this issue 3 years ago • 2 comments

What happened

Use flink sink multiple to write to iceberg, NPE appears. image

What you expected to happen

The reason is that flinkWriteConf has not been initialized when use flink sink multiple to write to iceberg. image image It can be initialized in the chainIcebergMultipleSinkOperators(), but it is used directly in the appendMultipleCommitter(). NPE will not occur when FlinkSink single table is written to iceberg, because flinkWriteConf will be initialized20230209-185443

How to reproduce

Use FlinkSink multiple to write to iceberg

Environment

No response

InLong version

master

InLong Component

InLong Sort

Are you willing to submit PR?

  • [X] Yes, I am willing to submit a PR!

Code of Conduct

hejiay avatar Feb 09 '23 10:02 hejiay

https://github.com/apache/inlong/pull/7364 had fixed this error @hejiay

gong avatar Feb 14 '23 10:02 gong

Fixed.

healchow avatar Feb 15 '23 06:02 healchow