Skip to content

Commit

Permalink
[fix][broker] fix DEFAULT_NAR_EXTRACTION_DIR cause NoClassDefFoundErr…
Browse files Browse the repository at this point in the history
…or (apache#15979)
  • Loading branch information
Nicklee007 authored Jun 21, 2022
1 parent 141c440 commit 771fd54
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ public class NarClassLoader extends URLClassLoader {

private static final String TMP_DIR_PREFIX = "pulsar-nar";

public static final String DEFAULT_NAR_EXTRACTION_DIR = System.getProperty("java.io.tmpdir");
public static final String DEFAULT_NAR_EXTRACTION_DIR = System.getProperty("nar.extraction.tmpdir") != null
? System.getProperty("nar.extraction.tmpdir") : System.getProperty("java.io.tmpdir");

static NarClassLoader getFromArchive(File narPath, Set<String> additionalJars, ClassLoader parent,
String narExtractionDirectory)
Expand Down

0 comments on commit 771fd54

Please sign in to comment.