Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-7435

UI sometimes dies downloading logs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0.0, 3.6.1, 3.5.2
    • Component/s: UI
    • Labels:
      None
    • Release Notes:
      Fixed an error which prevented downloading large logs using UI.
    • Rank:
      1|hzzn1r:

      Description

      This is on a distributed cluster from develop. I tried to view raw logs of a spark run and the UI died. In the logs, I see:

      ESC[32m[2016-10-11 22:24:26.168] [INFO] default - ESC[39mDownload Logs Start:  http://<host>:11015/v3/namespaces/default/apps/SpamClassifier_copy/spark/DataStreamsSparkStreaming/runs/41f4ad26-9001-11e6-a9a9-42010a8e0003/logs?start=1476224575
      _http_outgoing.js:344
          throw new Error('Can\'t set headers after they are sent.');
          ^
      
      Error: Can't set headers after they are sent.
          at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:344:11)
          at ServerResponse.header (/opt/cdap/ui/node_modules/express/lib/response.js:718:10)
          at ServerResponse.header (/opt/cdap/ui/node_modules/express/lib/response.js:721:12)
          at Request.<anonymous> (/opt/cdap/ui/server/express.js:195:17)
          at emitOne (events.js:77:13)
          at Request.emit (events.js:169:7)
          at Request.onRequestResponse (/opt/cdap/ui/node_modules/request/request.js:952:10)
          at emitOne (events.js:77:13)
          at ClientRequest.emit (events.js:169:7)
          at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:433:21)
      

      I was able to view the raw logs before that, so it doesn't happen all the time.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                edwin Edwin Elia
                Reporter:
                ashau Albert Shau
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: