Michael Smith has posted comments on this change. ( http://gerrit.cloudera.org:8080/19939 )
Change subject: IMPALA-11260: (Addendum) Restrict add-opens to Java 9+ ...................................................................... Patch Set 2: (3 comments) http://gerrit.cloudera.org:8080/#/c/19939/2/be/src/common/init.cc File be/src/common/init.cc: http://gerrit.cloudera.org:8080/#/c/19939/2/be/src/common/init.cc@311 PS2, Line 311: Unknown flags in JAVA_TOOL_OPTIONS causes Java to ignore everything, > We could create a test that sets something basic in JAVA_TOOL_OPTIONS and v Turns out there is one, but it's an exhaustive test. Adding a fast test makes sense. http://gerrit.cloudera.org:8080/#/c/19939/2/be/src/common/init.cc@315 PS2, Line 315: if (java_home != NULL) { : cmd = (boost::filesystem::path(java_home) / "bin" / "java").string(); : } > For my curiousity: Do our docker images find this via JAVA_HOME or PATH wit I added using PATH as a fallback because of the docker images. http://gerrit.cloudera.org:8080/#/c/19939/2/be/src/common/init.cc@335 PS2, Line 335: if (std::stoi(matches.str(1)) < 9) return Status::OK(); > Technically this can throw an exception if things go wrong. They shouldn't As in try/catch? I think a DCHECK also would, and we control the regex. I can add it though. -- To view, visit http://gerrit.cloudera.org:8080/19939 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: I85953e685f6bbbd213afd93f389066e82f193ddf Gerrit-Change-Number: 19939 Gerrit-PatchSet: 2 Gerrit-Owner: Michael Smith <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Joe McDonnell <[email protected]> Gerrit-Reviewer: Michael Smith <[email protected]> Gerrit-Reviewer: Quanlong Huang <[email protected]> Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]> Gerrit-Comment-Date: Fri, 26 May 2023 17:28:20 +0000 Gerrit-HasComments: Yes
