Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-25001

Improvement for some debug-logging guards

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

        1. HIVE-25001.patch
          3 kB
          Chen Zhi

          Issue Links

            Activity

              People

              • Assignee:
                coder_chenzhi Chen Zhi
                Reporter:
                coder_chenzhi Chen Zhi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h