Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,9 @@ public static DataStreamSink<Object> clean(Configuration conf, DataStream<Object
}

public static DataStreamSink<Object> dummySink(DataStream<Object> dataStream) {
return dataStream.addSink(Pipelines.DummySink.INSTANCE).name("dummy");
return dataStream.addSink(Pipelines.DummySink.INSTANCE)
.setParallelism(1)
.name("dummy");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, curious about why the append write function has rebalance exchange with this sink, and why they are not chained together.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to jump in...But I think it's more properly to set the parallelism of dummy sink as FlinkOptions.WRITE_TASKS, so that dummy sink can be chained with hoodie_write_task, which would reduce resource cost in some cases, e.g., when slot-sharing is disabled.

}

public static String opIdentifier(String operatorN, Configuration conf) {
Expand Down