File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
client-v2/src/test/java/com/clickhouse/client/insert Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 5252import java .util .Collections ;
5353import java .util .List ;
5454import java .util .UUID ;
55+ import java .util .concurrent .Executors ;
5556import java .util .concurrent .TimeUnit ;
5657import java .util .zip .GZIPOutputStream ;
5758
@@ -104,7 +105,8 @@ protected Client.Builder newClient() {
104105 .useHttpCompression (useHttpCompression )
105106 .setDefaultDatabase (ClickHouseServerForTest .getDatabase ())
106107 .serverSetting (ServerSettings .ASYNC_INSERT , "0" )
107- .serverSetting (ServerSettings .WAIT_END_OF_QUERY , "1" );
108+ .serverSetting (ServerSettings .WAIT_END_OF_QUERY , "1" )
109+ .setSharedOperationExecutor (Executors .newCachedThreadPool ());
108110 }
109111
110112 @ AfterMethod (groups = { "integration" })
@@ -287,7 +289,7 @@ public void insertRawDataAsync(boolean async) throws Exception {
287289 List <GenericRecord > records = client .queryAll ("SELECT * FROM " + tableName );
288290 assertEquals (records .size (), 1000 );
289291 assertTrue (Thread .currentThread ().getName ()
290- .startsWith (async ? "ForkJoinPool.commonPool " : "main" ), "Threads starts with " + Thread .currentThread ().getName ());
292+ .startsWith (async ? "pool-1-thread- " : "main" ), "Threads starts with " + Thread .currentThread ().getName ());
291293 })
292294 .join (); // wait operation complete. only for tests
293295 }
You can’t perform that action at this time.
0 commit comments