From df38ec62cb07d8367b91ec00ccec34898fd93e91 Mon Sep 17 00:00:00 2001 From: "Mateusz \"Serafin\" Gajewski" Date: Sat, 20 Jul 2024 09:49:09 +0200 Subject: [PATCH] Debug --- src/test/java/io/airlift/compress/v2/HadoopNative.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/test/java/io/airlift/compress/v2/HadoopNative.java b/src/test/java/io/airlift/compress/v2/HadoopNative.java index 44b01610..f0b2d2d4 100644 --- a/src/test/java/io/airlift/compress/v2/HadoopNative.java +++ b/src/test/java/io/airlift/compress/v2/HadoopNative.java @@ -47,14 +47,18 @@ public static synchronized void requireHadoopNative() } try { loadLibrary("hadoop"); + System.out.println("Before set static"); setStatic(NativeCodeLoader.class.getDeclaredField("nativeCodeLoaded"), true); loadLibrary("gplcompression"); loadLibrary("lzo2"); + System.out.println("Before require native zlib"); requireNativeZlib(); + System.out.println("After set static"); loaded = true; + System.out.println("Loaded is true"); } catch (Throwable t) { error = t; @@ -65,8 +69,9 @@ public static synchronized void requireHadoopNative() private static void requireNativeZlib() { Configuration conf = new Configuration(); + System.out.println("Before check isNativeZlibLoaded"); if (!ZlibFactory.isNativeZlibLoaded(conf)) { - //throw new RuntimeException("native zlib is not loaded"); + throw new RuntimeException("native zlib is not loaded"); } CompressionCodecFactory factory = new CompressionCodecFactory(conf);