Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-12781

REST handler should return full stack trace instead of just error msg

    XMLWordPrintableJSON

Details

    Description

      We use REST api to start a job in Flink cluster.
      https://ci.apache.org/projects/flink/flink-docs-stable/monitoring/rest_api.html#jars-jarid-run

      When there is exception during job construction, the response payload doesn't contain the full stack trace. 

      {"errors":["org.apache.flink.client.program.ProgramInvocationException: The main method caused an error."]}
      

      This problem becomes more serious after FLINK-11134 got released in 1.7.2, because stack trace is completely lost now. FLINK-11134 is doing the right thing. We just need the response payload to contain the full stack trace, which seems to have been an issue/fix since 1.5. we know 1.4 doesn't have this issue and correctly return full stack trace

      on the jobmanager log, we only get

      2019-06-07 17:42:40,136 ERROR org.apache.flink.runtime.webmonitor.handlers.JarRunHandler    - Exception occurred in REST handler: org.apache.flink.client.program.ProgramInvocationException: The main method caused an error.
      

      Attachments

        Issue Links

          Activity

            People

              stevenz3wu Steven Zhen Wu
              stevenz3wu Steven Zhen Wu
              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 - 1h 40m
                  1h 40m