From 0d33790c32c8d318cbf6cede07073637038b6670 Mon Sep 17 00:00:00 2001 From: Gonzalo Ortiz Jaureguizar Date: Mon, 29 Jul 2024 07:35:58 +0200 Subject: [PATCH] Always use Unsafe as the default PinotBufferFactory (#13639) --- .../apache/pinot/segment/spi/memory/PinotDataBuffer.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/PinotDataBuffer.java b/pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/PinotDataBuffer.java index 2ed9d22e925..c2fb5084a75 100644 --- a/pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/PinotDataBuffer.java +++ b/pinot-segment-spi/src/main/java/org/apache/pinot/segment/spi/memory/PinotDataBuffer.java @@ -167,13 +167,8 @@ public static PinotBufferFactory createDefaultFactory(boolean prioritizeByteBuff String factoryClassName; factoryClassName = System.getenv("PINOT_BUFFER_LIBRARY"); if (factoryClassName == null) { - if (JavaVersion.VERSION < 16) { - LOGGER.info("Using LArray as buffer on JVM version {}", JavaVersion.VERSION); - factoryClassName = LArrayPinotBufferFactory.class.getCanonicalName(); - } else { - LOGGER.info("Using Unsafe as buffer on JVM version {}", JavaVersion.VERSION); - factoryClassName = UnsafePinotBufferFactory.class.getCanonicalName(); - } + LOGGER.info("Using Unsafe as buffer on JVM version {}", JavaVersion.VERSION); + factoryClassName = UnsafePinotBufferFactory.class.getCanonicalName(); } return createFactory(factoryClassName, prioritizeByteBuffer); }