File tree Expand file tree Collapse file tree 4 files changed +18
-12
lines changed
server/src/main/java/org/elasticsearch
compute/src/main/java/org/elasticsearch/compute/operator
src/internalClusterTest/java/org/elasticsearch/xpack/esql/action Expand file tree Collapse file tree 4 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,7 @@ static TransportVersion def(int id) {
174174 public static final TransportVersion RESCORE_VECTOR_ALLOW_ZERO_BACKPORT_8_19 = def (8_841_0_27 );
175175 public static final TransportVersion INFERENCE_ADD_TIMEOUT_PUT_ENDPOINT_8_19 = def (8_841_0_28 );
176176 public static final TransportVersion ESQL_REPORT_SHARD_PARTITIONING_8_19 = def (8_841_0_29 );
177+ public static final TransportVersion ESQL_DRIVER_TASK_DESCRIPTION_8_19 = def (8_841_0_30 );
177178 public static final TransportVersion V_9_0_0 = def (9_000_0_09 );
178179 public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_1 = def (9_000_0_10 );
179180 public static final TransportVersion INITIAL_ELASTICSEARCH_9_0_2 = def (9_000_0_11 );
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ public record DriverProfile(
5252 public static DriverProfile readFrom (StreamInput in ) throws IOException {
5353 return new DriverProfile (
5454 in .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION )
55- || in .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 ) ? in .readString () : "" ,
55+ || in .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 )
56+ || in .getTransportVersion ().isPatchFrom (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION_8_19 ) ? in .readString () : "" ,
5657 in .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_NODE_DESCRIPTION ) ? in .readString () : "" ,
5758 in .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_NODE_DESCRIPTION ) ? in .readString () : "" ,
5859 in .getTransportVersion ().onOrAfter (TransportVersions .V_8_16_0 ) ? in .readVLong () : 0 ,
@@ -68,7 +69,8 @@ public static DriverProfile readFrom(StreamInput in) throws IOException {
6869 @ Override
6970 public void writeTo (StreamOutput out ) throws IOException {
7071 if (out .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION )
71- || out .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 )) {
72+ || out .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 )
73+ || out .getTransportVersion ().isPatchFrom (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION_8_19 )) {
7274 out .writeString (description );
7375 }
7476 if (out .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_NODE_DESCRIPTION )) {
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ public static DriverStatus readFrom(StreamInput in) throws IOException {
6363 return new DriverStatus (
6464 in .readString (),
6565 in .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION )
66- || in .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 ) ? in .readString () : "" ,
66+ || in .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 )
67+ || in .getTransportVersion ().isPatchFrom (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION_8_19 ) ? in .readString () : "" ,
6768 in .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_NODE_DESCRIPTION ) ? in .readString () : "" ,
6869 in .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_NODE_DESCRIPTION ) ? in .readString () : "" ,
6970 in .getTransportVersion ().onOrAfter (TransportVersions .V_8_14_0 ) ? in .readLong () : 0 ,
@@ -83,7 +84,8 @@ public static DriverStatus readFrom(StreamInput in) throws IOException {
8384 public void writeTo (StreamOutput out ) throws IOException {
8485 out .writeString (sessionId );
8586 if (out .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION )
86- || out .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 )) {
87+ || out .getTransportVersion ().isPatchFrom (TransportVersions .V_9_0_0 )
88+ || out .getTransportVersion ().isPatchFrom (TransportVersions .ESQL_DRIVER_TASK_DESCRIPTION_8_19 )) {
8789 out .writeString (description );
8890 }
8991 if (out .getTransportVersion ().onOrAfter (TransportVersions .ESQL_DRIVER_NODE_DESCRIPTION )) {
Original file line number Diff line number Diff line change @@ -109,26 +109,27 @@ public void testConcurrentQueries() throws Exception {
109109 CountDownLatch latch = new CountDownLatch (1 );
110110 for (int q = 0 ; q < numQueries ; q ++) {
111111 threads [q ] = new Thread (() -> {
112- try {
113- assertTrue (latch .await (1 , TimeUnit .MINUTES ));
114- } catch (InterruptedException e ) {
115- throw new AssertionError (e );
116- }
112+ safeAwait (latch );
117113 final var pragmas = Settings .builder ();
118114 if (randomBoolean () && canUseQueryPragmas ()) {
119115 pragmas .put (randomPragmas ().getSettings ())
120116 .put ("task_concurrency" , between (1 , 2 ))
121117 .put ("exchange_concurrent_clients" , between (1 , 2 ));
122118 }
123- run ("from test-* | stats count(user) by tags" , new QueryPragmas (pragmas .build ())).close ();
124- });
119+ try (var response = run ("from test-* | stats count(user) by tags" , new QueryPragmas (pragmas .build ()))) {
120+ // do nothing
121+ } catch (Exception | AssertionError e ) {
122+ logger .warn ("Query failed with exception" , e );
123+ throw e ;
124+ }
125+ }, "testConcurrentQueries" );
125126 }
126127 for (Thread thread : threads ) {
127128 thread .start ();
128129 }
129130 latch .countDown ();
130131 for (Thread thread : threads ) {
131- thread .join ();
132+ thread .join (10_000 );
132133 }
133134 }
134135
You can’t perform that action at this time.
0 commit comments