Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
wendigo committed Jul 20, 2024
1 parent 78e1fe8 commit d2d40ca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/java/io/airlift/compress/v2/HadoopNative.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -65,6 +69,7 @@ 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");
}
Expand Down

0 comments on commit d2d40ca

Please sign in to comment.