File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
server/src/test/java/org/elasticsearch/transport Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -387,9 +387,6 @@ tests:
387387 issue : https://github.com/elastic/elasticsearch/issues/121672
388388- class : org.elasticsearch.xpack.esql.qa.multi_node.EsqlSpecIT
389389 issue : https://github.com/elastic/elasticsearch/issues/121411
390- - class : org.elasticsearch.transport.InboundHandlerTests
391- method : testLogsSlowInboundProcessing
392- issue : https://github.com/elastic/elasticsearch/issues/121816
393390- class : org.elasticsearch.smoketest.DocsClientYamlTestSuiteIT
394391 method : test {yaml=reference/cat/health/cat-health-no-timestamp-example}
395392 issue : https://github.com/elastic/elasticsearch/issues/121867
Original file line number Diff line number Diff line change @@ -291,8 +291,11 @@ public void testLogsSlowInboundProcessing() throws Exception {
291291 BytesStreamOutput byteData = new BytesStreamOutput ();
292292 TaskId .EMPTY_TASK_ID .writeTo (byteData );
293293 // simulate bytes of a transport handshake: vInt transport version then release version string
294- TransportVersion .writeVersion (remoteVersion , byteData );
295- byteData .writeString (randomIdentifier ());
294+ try (var payloadByteData = new BytesStreamOutput ()) {
295+ TransportVersion .writeVersion (remoteVersion , payloadByteData );
296+ payloadByteData .writeString (randomIdentifier ());
297+ byteData .writeBytesReference (payloadByteData .bytes ());
298+ }
296299 final InboundMessage requestMessage = new InboundMessage (
297300 requestHeader ,
298301 ReleasableBytesReference .wrap (byteData .bytes ()),
You can’t perform that action at this time.
0 commit comments