Skip to content

Commit

Permalink
reverse changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stevesamson committed Jul 3, 2024
1 parent 758d0b8 commit 87a24a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2328,8 +2328,7 @@ public static void setLongVar(Configuration conf, ConfVars var, long val) {
public static boolean getBoolVar(Configuration conf, ConfVars var) {
assert var.defaultVal.getClass() == Boolean.class;
String val = conf.get(var.varname);
// return val == null ? conf.getBoolean(var.hiveName, (Boolean)var.defaultVal) : Boolean.valueOf(val);
return val == null ? false : Boolean.valueOf(val);
return val == null ? conf.getBoolean(var.hiveName, (Boolean)var.defaultVal) : Boolean.valueOf(val);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,13 @@ private void createConfFile(String fileName, boolean inConf, String envVar,
File dir = new File(tmpDir, randomFileName());
Assume.assumeTrue(dir.mkdir());
dir.deleteOnExit();
System.setProperty(MetastoreConf.TEST_ENV_WORKAROUND + envVar, dir.getAbsolutePath());
// System.setProperty(MetastoreConf.TEST_ENV_WORKAROUND + envVar, dir.getAbsolutePath());
if (inConf) {
dir = new File(dir, "conf");
Assume.assumeTrue(dir.mkdir());
dir.deleteOnExit();
}
System.setProperty(MetastoreConf.TEST_ENV_WORKAROUND + envVar, dir.getAbsolutePath());
File confFile = new File(dir, fileName);
confFile.deleteOnExit();
FileWriter writer = new FileWriter(confFile);
Expand Down

0 comments on commit 87a24a4

Please sign in to comment.