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

Revamp Server Request Error Logging

    XMLWordPrintableJSON

Details

    Description

      Most of the action takes place in ThriftCLIService where errors are logged in response to client requests (though I know in many instances things are logged multiple times).

      I propose to improve this on multiple fronts:

      1. Many log messages have the word "Error" in it, but log at the WARN level. I have changed all relevant logging to be at ERROR level and removed the word "Error" from the message
      2. Some of the error message in the logging code had copy & paste errors where they printed the wrong request name
      3. Print the actual request object in the error message
      4. Big one for me: Do not pass a stack trace to the client. This is bad practice from a security perspective,... clients should not know that level of detail of the server, and also it's very confusing for the client perspective to understand that the stack trace is actually from the remote server, not the local client, and finally, it's too messy for a typical user to deal with anyway. Stack trace should be presented in the HS2 logs only.
      5. Various clean up
      6. Log an IP address for the client as part of standard operating procedure

      Attachments

        Issue Links

          Activity

            People

              belugabehr David Mollitor
              belugabehr David Mollitor
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 3h 20m
                  3h 20m