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

HttpContentConsumer onFinish and onError not called on socket error

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.1
    • Component/s: CDAP Services
    • Labels:
    • Rank:
      1|hzz68f:

      Description

      I have an ServiceHandler that has a PUT method and implements HttpContentConsumer. If I use curl to invoke the PUT and either perform a control+C of the command or do a kill of the command the onFinish and onError methods are not called on the HttpContentConsumer.

      I have found that the onError method is only invoked if there is an exception raised in either onReceive or onFinish. In the event of a socket exception I need the ability to cleanup the work that has been preformed by the service handler.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gokul Gokul Gunasekaran
                Reporter:
                jd565c Jeff Dix
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: