GitHub user rekhajoshm opened a pull request:

    https://github.com/apache/spark/pull/21684

    [SPARK-24470][Core] RestSubmissionClient to be robust against 404 & non 
json responses

    ## What changes were proposed in this pull request?
    Added check for 404, to avoid json parsing on not found response and to 
avoid returning malformed or bad request when it was a not found http response. 
    Not sure if I need to add an additional check on non json response 
[if(connection.getHeaderField("Content-Type").contains("text/html")) then 
exception] as non-json is a subset of malformed json and covered in flow.
    
    ## How was this patch tested?
    ./dev/run-tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rekhajoshm/spark SPARK-24470

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/21684.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #21684
    
----
commit e3677c9fa9697e0d34f9df52442085a6a481c9e9
Author: Rekha Joshi <rekhajoshm@...>
Date:   2015-05-05T23:10:08Z

    Merge pull request #1 from apache/master
    
    Pulling functionality from apache spark

commit 106fd8eee8f6a6f7c67cfc64f57c1161f76d8f75
Author: Rekha Joshi <rekhajoshm@...>
Date:   2015-05-08T21:49:09Z

    Merge pull request #2 from apache/master
    
    pull latest from apache spark

commit 0be142d6becba7c09c6eba0b8ea1efe83d649e8c
Author: Rekha Joshi <rekhajoshm@...>
Date:   2015-06-22T00:08:08Z

    Merge pull request #3 from apache/master
    
    Pulling functionality from apache spark

commit 6c6ee12fd733e3f9902e10faf92ccb78211245e3
Author: Rekha Joshi <rekhajoshm@...>
Date:   2015-09-17T01:03:09Z

    Merge pull request #4 from apache/master
    
    Pulling functionality from apache spark

commit b123c601e459d1ad17511fd91dd304032154882a
Author: Rekha Joshi <rekhajoshm@...>
Date:   2015-11-25T18:50:32Z

    Merge pull request #5 from apache/master
    
    pull request from apache/master

commit c73c32aadd6066e631956923725a48d98a18777e
Author: Rekha Joshi <rekhajoshm@...>
Date:   2016-03-18T19:13:51Z

    Merge pull request #6 from apache/master
    
    pull latest from apache spark

commit 7dbf7320057978526635bed09dabc8cf8657a28a
Author: Rekha Joshi <rekhajoshm@...>
Date:   2016-04-05T20:26:40Z

    Merge pull request #8 from apache/master
    
    pull latest from apache spark

commit 5e9d71827f8e2e4d07027281b80e4e073e7fecd1
Author: Rekha Joshi <rekhajoshm@...>
Date:   2017-05-01T23:00:30Z

    Merge pull request #9 from apache/master
    
    Pull apache spark

commit 63d99b3ce5f222d7126133170a373591f0ac67dd
Author: Rekha Joshi <rekhajoshm@...>
Date:   2017-09-30T22:26:44Z

    Merge pull request #10 from apache/master
    
    pull latest apache spark

commit a7fc787466b71784ff86f9694f617db0f1042da8
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-01-21T00:17:58Z

    Merge pull request #11 from apache/master
    
    Apache spark pull latest

commit 3a2d45377ed4397de802badd764bc2588cfd275b
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-02-09T04:55:12Z

    Merge pull request #12 from apache/master
    
    Apache spark latest pull

commit dca3a9e6f4c5fb6d34aeac7d2579c24102834fc2
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-05-31T22:27:26Z

    Merge pull request #13 from apache/master
    
    apache spark latest pull

commit fe58c3770814543dbe923420f0bf77a74696f8d4
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-06-21T05:59:44Z

    Merge remote-tracking branch 'upstream/master'

commit ae51f60e9451b4b6be7200f6f142e871c38a1a8a
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-06-21T06:10:45Z

    Merge pull request #14 from apache/master
    
    latest apache spark

commit 1cf4ed2df52fbb1404ca8ddf015ac799989b7d62
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-06-30T17:17:49Z

    Merge branch 'master' of https://github.com/rekhajoshm/spark

commit 1c48d4f6e49e5c818609ae1e82ed48ac8426a6d0
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-06-30T17:20:10Z

    Merge pull request #15 from apache/master
    
    apache spark latest

commit aa735f5e1680b9abf23ce8e40b0b8436fdb61e2b
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-06-30T17:21:09Z

    Merge branch 'master' of https://github.com/rekhajoshm/spark

commit e2eaa1c47d16549713da9cca7cce06552c384c0c
Author: Rekha Joshi <rekhajoshm@...>
Date:   2018-07-01T01:39:45Z

    [SPARK-24470][Core] RestSubmissionClient to be robust against 404 & non 
json responses

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to