Closed Z1Wu closed 1 year ago
I add random number on directory to fix it.
Maybe we don't need to generate random number, I currently use a task Id get from SinkWriter.Context
as a work-around.
this.taskIndex = context.getIndexOfSubtask();
Maybe we don't need to generate random number, I currently use a task Id get from
SinkWriter.Context
as a work-around.this.taskIndex = context.getIndexOfSubtask();
@Hisoka-X
Maybe we don't need to generate random number, I currently use a task Id get from
SinkWriter.Context
as a work-around.this.taskIndex = context.getIndexOfSubtask();
This is a good way, I will change the code. Please help me review @Z1Wu
Search before asking
What happened
When using clickhouse-file connector v2 to load data into clickhouse, if sink get multiple data partitions, different clickhouse-local program on different executors may generate data part with same name. Under this situation, the following operations including transfering local file to clickhouse clsuter node and altering data part of table may fail because of the name conflict.
sample configuration file to reproduce error :
SeaTunnel Version
2.2.0-beta-release
SeaTunnel Config
Running Command
Error Exception
Flink or Spark Version
No response
Java or Scala Version
No response
Screenshots
No response
Are you willing to submit PR?
Code of Conduct