You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2021/04/12 11:31:15 UTC
[GitHub] [hive] pgaref commented on a change in pull request #2165: HIVE-25001 Improvement for some debug-logging guards
pgaref commented on a change in pull request #2165:
URL: https://github.com/apache/hive/pull/2165#discussion_r611548683
##########
File path: llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/LlapTaskSchedulerService.java
##########
@@ -1386,8 +1386,9 @@ boolean isRequestedHostPresent(TaskInfo request) {
*/
private SelectHostResult selectHost(TaskInfo request) {
String[] requestedHosts = request.requestedHosts;
- String requestedHostsDebugStr = Arrays.toString(requestedHosts);
+ String requestedHostsDebugStr = null;
if (LOG.isDebugEnabled()) {
+ requestedHostsDebugStr = Arrays.toString(requestedHosts);
Review comment:
Lets add a comment here mentioning that requestedHostsDebugStr should be properly assigned on the FIRST isDebugEnabled block.
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org