dingweiqings commented on code in PR #20755:
URL: https://github.com/apache/flink/pull/20755#discussion_r1019785880
##########
flink-formats/flink-hadoop-bulk/src/test/java/org/apache/flink/formats/hadoop/bulk/HadoopPathBasedPartFileWriterTest.java:
##########
@@ -82,13 +84,23 @@ public void testWriteFile() throws Exception {
DataStream<String> stream =
env.addSource(new FiniteTestSource<>(data),
TypeInformation.of(String.class));
Configuration configuration = new Configuration();
-
+ // Elements from source assign to one bucket , and produce two part
after checkpoint.
Review Comment:
In this test case use sync lock to make checkpoint twice , so fially we get
two part file . Doc reference
https://nightlies.apache.org/flink/flink-docs-master/docs/connectors/datastream/filesystem/#bucket-assignment
Code is in this method
```
org.apache.flink.streaming.util.FiniteTestSource#run
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]