test(redshift): avoid TCP delays in COPY backend fixture (#8160)

Enable TCP_NODELAY before the fake backend starts protocol I/O, following the existing COPY job fixture socket configuration. Preserve every wire frame, flush point, assertion and deadline.

Two alternating focused Maven benchmark pairs reduce mean elapsed from 57.184s to 33.682s. Fresh current-main validation passes all 35 affected cases and Checkstyle; this is not a full-CI speedup claim.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-12 20:44:12 -04:00
1 parent 355c180db3
commit 83e12f1191
1 file changed
+1
@@ -64,6 +64,7 @@ final class FakeCopyBackend {
private void serve(OutputStream copied, boolean stopAfterLoad, boolean failCommit,
StatementObserver observer) throws Exception {
socket.setTcpNoDelay(true);
PostgresWireDecoder decoder = new PostgresWireDecoder(socket.getInputStream());
OutputStream out = socket.getOutputStream();
Map<String, String> statements = new HashMap<>();