jojochuang commented on code in PR #11367:
URL: https://github.com/apache/ozone/pull/11367#discussion_r4147000460
##########
hadoop-hdds/framework/src/main/java/org/apache/hadoop/hdds/server/http/BaseHttpServer.java:
##########
@@ -191,15 +192,33 @@ public BaseHttpServer(MutableConfigurationSource conf,
String name)
baseDir = getOzoneMetaDirPath(conf) + SERVER_DIR;
}
createDir(baseDir);
- httpServer.getWebAppContext().setAttribute(JETTY_BASETMPDIR, baseDir);
+ WebAppContext webAppContext = httpServer.getWebAppContext();
+ // Jetty 9 used the "basetempdir" attribute, so each WebAppContext got
its
Review Comment:
It might cause problem for users with high security requirement, where they
configure directories to be noexec. nonexec dir becomes trouble when Jetty
loads native lib into it (required for openssl, for example).
Not totally sure about that. We can look into it later.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]