From bc0dbb322692578273fdf44ae0aa8fbe178ee59c Mon Sep 17 00:00:00 2001 From: Armin Braun Date: Mon, 3 Jul 2023 14:17:52 +0200 Subject: [PATCH] Increase blob container max register content length We want to store another long in these now, so bump this up to 16. --- .../common/blobstore/support/BlobContainerUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/elasticsearch/common/blobstore/support/BlobContainerUtils.java b/server/src/main/java/org/elasticsearch/common/blobstore/support/BlobContainerUtils.java index 18e7d02207fc2..b48dab6b533ab 100644 --- a/server/src/main/java/org/elasticsearch/common/blobstore/support/BlobContainerUtils.java +++ b/server/src/main/java/org/elasticsearch/common/blobstore/support/BlobContainerUtils.java @@ -21,7 +21,7 @@ private BlobContainerUtils() { // no instances } - public static final int MAX_REGISTER_CONTENT_LENGTH = Long.BYTES; + public static final int MAX_REGISTER_CONTENT_LENGTH = 2 * Long.BYTES; public static void ensureValidRegisterContent(BytesReference bytesReference) { if (bytesReference.length() > MAX_REGISTER_CONTENT_LENGTH) {