From be6f3af9cd09e6d980a9e57e482ae6576a9f8927 Mon Sep 17 00:00:00 2001 From: wudi <676366545@qq.com> Date: Mon, 12 Aug 2024 16:24:14 +0800 Subject: [PATCH] fix it --- .../org/apache/doris/flink/sink/DorisSinkITCase.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/flink-doris-connector/src/test/java/org/apache/doris/flink/sink/DorisSinkITCase.java b/flink-doris-connector/src/test/java/org/apache/doris/flink/sink/DorisSinkITCase.java index 2bd9b8905..de0ef0413 100644 --- a/flink-doris-connector/src/test/java/org/apache/doris/flink/sink/DorisSinkITCase.java +++ b/flink-doris-connector/src/test/java/org/apache/doris/flink/sink/DorisSinkITCase.java @@ -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 expected = Arrays.asList("doris,1", "flink,2"); String query = String.format( @@ -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()) @@ -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 expected = Arrays.asList("doris,1", "flink,2"); String query = String.format(