coder-chenzhi opened a new pull request #2165:
URL: https://github.com/apache/hive/pull/2165


   
   
   ### What changes were proposed in this pull request?
   Moving some potential expensive statements (e.g. `Arrays.toString`) into the 
adjacent logging guards, since these statements are merely used by the 
following logging calls.
   Note that the fix in `LlapTaskSchedulerService.java` is different with other 
cases in this patch, because the variable `requestedHostsDebugStr` is used by 
several debug-logging calls, and we have to declare and assign the variable 
before these debug-logging calls.
   
   
   ### Why are the changes needed?
   Minor (performance) improvement to logging code
   
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   
   ### How was this patch tested?
   Minor improvement to logging code, and no need to test.
   


-- 
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to