Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28861

Jetty property handling: java.lang.NumberFormatException: For input string: "unknown".

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.4.3
    • None
    • Spark Submit
    • None

    Description

      While processing data from certain files a NumberFormatExceltion was seen in the logs. The processing was fine but the following stacktrace was observed:

      {"time":"2019-08-16 08:21:36,733","level":"DEBUG","class":"o.s.j.u.Jetty","message":"","thread":"Driver","appName":"app-name","appVersion":"APPLICATION_VERSION","type":"APPLICATION","errorCode":"ERROR_CODE","errorId":""}
      java.lang.NumberFormatException: For input string: "unknown".
      

      On investigation it is found that in the class Jetty there is the following:

      BUILD_TIMESTAMP = formatTimestamp(__buildProperties.getProperty("timestamp", "unknown")); 
      

      which indicates that the config should have the 'timestamp' property. If the property is not there then the default value is set as 'unknown' and this value causes the stacktrace to show up in the logs in our application. It has no detrimental effect on the application as such but could be addressed.
       

      Attachments

        Activity

          People

            Unassigned Unassigned
            Shrikhande Ketan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: