From d7b75b8f76c5d6387f3bcdab9d99d711b8de894d Mon Sep 17 00:00:00 2001 From: Brendan Cully Date: Mon, 29 Sep 2025 11:40:22 -0700 Subject: [PATCH] Serialize ReplicationRequest reshard shardcount summary as VInt instead of Int This should always save at least 2 bytes of 4, and almost always 3. --- .../replication/ReplicationRequest.java | 21 ++++++++++++------- .../index_reshard_shardcount_small.csv | 1 + .../resources/transport/upper_bounds/9.2.csv | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 server/src/main/resources/transport/definitions/referable/index_reshard_shardcount_small.csv diff --git a/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationRequest.java b/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationRequest.java index f5cd42fd4d524..7cab8b6e19659 100644 --- a/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationRequest.java +++ b/server/src/main/java/org/elasticsearch/action/support/replication/ReplicationRequest.java @@ -38,7 +38,10 @@ public abstract class ReplicationRequest