You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by vanzin <gi...@git.apache.org> on 2017/11/14 17:54:21 UTC

[GitHub] spark pull request #19748: [SPARK-20649][core] Simplify REST API resource st...

GitHub user vanzin opened a pull request:

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

    [SPARK-20649][core] Simplify REST API resource structure.

    With the new UI store, the API resource classes have a lot less code,
    since there's no need for complicated translations between the UI
    types and the API types. So the code ended up with a bunch of files
    with a single method declared in them.
    
    This change re-structures the API code so that it uses less classes;
    mainly, most sub-resources were removed, and the code to deal with
    single-attempt and multi-attempt apps was simplified.
    
    The only change was the addition of a method to return a single
    attempt's information; that was missing in the old API, so trying
    to retrieve "/v1/applications/appId/attemptId" would result in a
    404 even if the attempt existed (and URIs under that one would
    return valid data).
    
    The streaming API resources also overtook the same treatment, even
    though the data is not stored in the new UI store.

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

    $ git pull https://github.com/vanzin/spark SPARK-20649

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

    https://github.com/apache/spark/pull/19748.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 #19748
    
----
commit fec91b6d9d7728f9fdfe96fbacf34d8f4d387a83
Author: Marcelo Vanzin <va...@cloudera.com>
Date:   2017-03-23T18:10:40Z

    [SPARK-20649][core] Simplify REST API resource structure.
    
    With the new UI store, the API resource classes have a lot less code,
    since there's no need for complicated translations between the UI
    types and the API types. So the code ended up with a bunch of files
    with a single method declared in them.
    
    This change re-structures the API code so that it uses less classes;
    mainly, most sub-resources were removed, and the code to deal with
    single-attempt and multi-attempt apps was simplified.
    
    The only change was the addition of a method to return a single
    attempt's information; that was missing in the old API, so trying
    to retrieve "/v1/applications/appId/attemptId" would result in a
    404 even if the attempt existed (and URIs under that one would
    return valid data).
    
    The streaming API resources also overtook the same treatment, even
    though the data is not stored in the new UI store.

----


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/83856/
    Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by vanzin <gi...@git.apache.org>.
Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    For context:
    
    *Project link: https://issues.apache.org/jira/browse/SPARK-18085
    * Upcoming PRs that build on this code: https://github.com/vanzin/spark/pulls



---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    Merged build finished. Test PASSed.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by squito <gi...@git.apache.org>.
Github user squito commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    lgtm


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    **[Test build #83856 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/83856/testReport)** for PR 19748 at commit [`fec91b6`](https://github.com/apache/spark/commit/fec91b6d9d7728f9fdfe96fbacf34d8f4d387a83).


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark pull request #19748: [SPARK-20649][core] Simplify REST API resource st...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

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


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    **[Test build #83856 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/83856/testReport)** for PR 19748 at commit [`fec91b6`](https://github.com/apache/spark/commit/fec91b6d9d7728f9fdfe96fbacf34d8f4d387a83).
     * This patch passes all tests.
     * This patch merges cleanly.
     * This patch adds no public classes.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org


[GitHub] spark issue #19748: [SPARK-20649][core] Simplify REST API resource structure...

Posted by squito <gi...@git.apache.org>.
Github user squito commented on the issue:

    https://github.com/apache/spark/pull/19748
  
    merged to master


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org