You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Job cannot recover from checkpoint/savepoint if parallelism is changed from 1 to 2 #4543
If the job parallelism is 1, the Writer operator and the Compact Coordinator operator will be chained. However, since the parallelism of the Compact Coordinator operator is always 1, when the job parallelism is adjusted, the Writer operator and the Compact Coordinator operator will be separated, resulting in the state not being recoverable.
We need to disable chain between writer operator and compact corrdinator operator.
I think #4424 can solve this problem. But do we still need to add the disable chain? Or do we just need to recommend that users add the 'sink.operator-uid.suffix' and 'source.operator-uid.suffix' options to their Flink job?
I think #4424 can solve this problem. But do we still need to add the disable chain? Or do we just need to recommend that users add the 'sink.operator-uid.suffix' and 'source.operator-uid.suffix' options to their Flink job?
@Tan-JiaLiang
I think #4424 is enough to solve the problem of not being able to recover from a checkpoint, but I think #3232. is also necessary, Because if the flink adaptive scheduler is used, we can quickly modify the parallelism of the writer in flink webui, No need to restart the job(if chaining false).
Activity
Tan-JiaLiang commentedon Nov 18, 2024
paimon/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/UnawareBucketSink.java
Lines 69 to 83 in 220789d
If the job parallelism is 1, the Writer operator and the Compact Coordinator operator will be chained. However, since the parallelism of the Compact Coordinator operator is always 1, when the job parallelism is adjusted, the Writer operator and the Compact Coordinator operator will be separated, resulting in the state not being recoverable.
We need to disable chain between writer operator and compact corrdinator operator.
Tan-JiaLiang commentedon Nov 18, 2024
paimon/paimon-flink/paimon-flink-common/src/main/java/org/apache/paimon/flink/sink/FlinkSink.java
Lines 243 to 256 in 220789d
Same as org.apache.paimon.flink.sink.FlinkSink#doWrite
Tan-JiaLiang commentedon Nov 18, 2024
@JingsongLi WDYT? Should we add an option to control this? Like #3232.
Tan-JiaLiang commentedon Nov 19, 2024
I think #4424 can solve this problem. But do we still need to add the disable chain? Or do we just need to recommend that users add the 'sink.operator-uid.suffix' and 'source.operator-uid.suffix' options to their Flink job?
huyuanfeng2018 commentedon Dec 11, 2024
@Tan-JiaLiang
I think #4424 is enough to solve the problem of not being able to recover from a checkpoint, but I think #3232. is also necessary, Because if the flink adaptive scheduler is used, we can quickly modify the parallelism of the writer in flink webui, No need to restart the job(if chaining false).