Skip to content

Commit

Permalink
fix it
Browse files Browse the repository at this point in the history
  • Loading branch information
JNSimba committed Aug 12, 2024
1 parent e19e1ae commit be6f3af
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public void testTableBatch() throws Exception {
tEnv.executeSql(sinkDDL);
tEnv.executeSql("INSERT INTO doris_sink SELECT 'doris',1 union all SELECT 'flink',2");

Thread.sleep(10000);
Thread.sleep(20000);
List<String> expected = Arrays.asList("doris,1", "flink,2");
String query =
String.format(
Expand Down Expand Up @@ -248,8 +248,9 @@ public void testDataStreamBatch() throws Exception {
executionBuilder
.setLabelPrefix(UUID.randomUUID().toString())
.setStreamLoadProp(properties)
.setBufferFlushMaxBytes(1)
.setBufferFlushMaxRows(10);
.setBufferFlushMaxBytes(10485760)
.setBufferFlushMaxRows(10000)
.setBufferFlushIntervalMs(1000);

builder.setDorisExecutionOptions(executionBuilder.build())
.setSerializer(new SimpleStringSerializer())
Expand All @@ -258,7 +259,7 @@ public void testDataStreamBatch() throws Exception {
env.fromElements("doris,1", "flink,2").sinkTo(builder.build());
env.execute();

Thread.sleep(10000);
Thread.sleep(20000);
List<String> expected = Arrays.asList("doris,1", "flink,2");
String query =
String.format(
Expand Down

0 comments on commit be6f3af

Please sign in to comment.