Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1280

Currently the ranger-admin will be aborted and couldn't find any error messages in log file when the exception occured. We should get the default value instead of aborted and record the error log.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 0.7.0
    • admin
    • Patch

    Description

      I failed to run the ranger-admin command and couldn't find any error messages in log file after set ranger.service.http.connector.attrib.maxHeaderCount=aa(string value) in ranger-admin-site.xml file. I analyzed the source codes and found the reason.
      I found there are two questions after check the source codes in EmbeddedServer.java.
      1. No exception pop out when called Integer.parseInt() and Long.parseLong() function. Once abnormal, the program aborted directly without log.
      2. The catch captures anomaly without log in the loadConfig function. It only calls e.printStackTrace() function.

      Currently the program will be aborted when the exception occured. We should get the default value instead of aborted.

      We have tested our patch strictly.

      Attachments

        Issue Links

          Activity

            People

              zhangqiang2 Qiang Zhang
              zhangqiang2 Qiang Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: