Skip to content

Commit 2f39c49

Browse files
authored
Increase blob container max register content length (elastic#127701)
Allowing a bit more space than elastic#127491, for the same purposes. Relates ES-11205
1 parent 7269b75 commit 2f39c49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/common/blobstore/support/BlobContainerUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ private BlobContainerUtils() {
2222
// no instances
2323
}
2424

25-
public static final int MAX_REGISTER_CONTENT_LENGTH = 3 * Long.BYTES;
25+
public static final int MAX_REGISTER_CONTENT_LENGTH = 4 * Long.BYTES;
2626

2727
public static void ensureValidRegisterContent(BytesReference bytesReference) {
2828
if (bytesReference.length() > MAX_REGISTER_CONTENT_LENGTH) {

server/src/test/java/org/elasticsearch/common/blobstore/fs/FsBlobContainerTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public void testCompareAndExchange() throws Exception {
237237
expectedValue.set(newValue);
238238
}
239239

240-
container.writeBlob(randomPurpose(), key, new BytesArray(new byte[25]), false);
240+
container.writeBlob(randomPurpose(), key, new BytesArray(new byte[33]), false);
241241
assertThat(
242242
safeAwaitFailure(
243243
OptionalBytesReference.class,

0 commit comments

Comments
 (0)