Skip to content

Commit

Permalink
Always use Unsafe as the default PinotBufferFactory (apache#13639)
Browse files Browse the repository at this point in the history
  • Loading branch information
gortiz authored Jul 29, 2024
1 parent a6cf197 commit 0d33790
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0d33790

Please sign in to comment.