GitHub user weand reopened a pull request:

    https://github.com/apache/zeppelin/pull/2706

    ZEPPELIN-3105 Notebook not running via REST API after Zeppelin Restart

    ### What is this PR for?
    Fixes regression introduced with 
[ZEPPELIN-3013](https://issues.apache.org/jira/browse/ZEPPELIN-3013). Executing 
Notebook and
    Paragraph via Rest API was not possible anymore, because some parsing
    was introduced paragraph.setText(...). The setter was not invoked after
    deserialization, thus transient variables paragraph.intpText and 
paragraph.scriptText were
    not set.
    
    This PR fixes that by invoking paragraph.parseText() after deserialization.
    
    Also a test was added, and AbstractTestRestApi.shutdown() method was
    overloaded to support the use case of not deleting the interpreter.json
    during server restart within one test case.
    
    ### What type of PR is it?
    [Bug Fix]
    
    ### Todos
    -
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-3105
    
    ### How should this be tested?
    Refer to the test case added,
    org.apache.zeppelin.rest.NotebookRestApiTest.testRunWithServerRestart()
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update? - no
    * Is there breaking changes for older versions? - no
    * Does this needs documentation? - no

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

    $ git pull https://github.com/weand/zeppelin ZEPPELIN-3105

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

    https://github.com/apache/zeppelin/pull/2706.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 #2706
    
----
commit 591ec8da28dac68bc67d21bb25a504563a311210
Author: Andreas Weise <a.weise@...>
Date:   2017-12-17T22:35:42Z

    ZEPPELIN-3105 Notebook not running via REST API after Zeppelin Restart

commit ea8f3ead61f1b6c283ef7e75230c1cbd0c80e0b0
Author: Andreas Weise <a.weise@...>
Date:   2017-12-18T22:14:06Z

    ZEPPELIN-3105 Notebook not running via REST API after Zeppelin Restart
    
    parseText within fromJson Method.

commit ff4398313a55ae5ddd238083de264c1c31230e9a
Author: Andreas Weise <a.weise@...>
Date:   2017-12-19T20:14:22Z

    Merge branch 'master' of https://github.com/apache/zeppelin.git into
    ZEPPELIN-3105

commit 02e1f08bef36436252ce104e550b7b3186981455
Author: Andreas Weise <a.weise@...>
Date:   2017-12-21T21:24:52Z

    Merge branch 'master' of https://github.com/apache/zeppelin.git into 
ZEPPELIN-3105

commit d46182f789bb227f14aa0a5e54eb0e5d5d7c382a
Author: Andreas Weise <a.weise@...>
Date:   2017-12-22T19:10:11Z

    Merge branch 'master' of https://github.com/apache/zeppelin.git into
    ZEPPELIN-3105
    
    Conflicts:
        
zeppelin-server/src/test/java/org/apache/zeppelin/rest/AbstractTestRestApi.java

----


---

Reply via email to