This is an automated email from the ASF dual-hosted git repository.

xiangfu0 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git


The following commit(s) were added to refs/heads/master by this push:
     new 6f87b7150f4 Fix JDK 25 compilation in Zstandard decompressor (#19798)
6f87b7150f4 is described below

commit 6f87b7150f40464f455e1a52b2c2a6184f49ccb7
Author: Xiang Fu <[email protected]>
AuthorDate: Thu Oct 8 11:15:00 2026 -0700

    Fix JDK 25 compilation in Zstandard decompressor (#19798)
    
    Reproduce on JDK 25 with ./mvnw -pl pinot-segment-local -am test-compile; 
the deprecated Zstd call fails with cannot access NotNull.
    Use getFrameContentSize() and preserve the existing size and error results.
---
 .../pinot/segment/local/io/compression/ZstandardDecompressor.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/compression/ZstandardDecompressor.java
 
b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/compression/ZstandardDecompressor.java
index 1d452b15394..09b18b3d8f2 100644
--- 
a/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/compression/ZstandardDecompressor.java
+++ 
b/pinot-segment-local/src/main/java/org/apache/pinot/segment/local/io/compression/ZstandardDecompressor.java
@@ -48,6 +48,6 @@ class ZstandardDecompressor implements ChunkDecompressor {
 
   @Override
   public int decompressedLength(ByteBuffer compressedInput) {
-    return (int) Zstd.decompressedSize(compressedInput);
+    return (int) Zstd.getFrameContentSize(compressedInput);
   }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to