Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-3656] Fix for completion with Livy interpreter #3094

Closed
wants to merge 4 commits into from

Conversation

alexjbush
Copy link
Contributor

@alexjbush alexjbush commented Jul 24, 2018

What is this PR for?

Fix for NullPointerException when using code completion in the Livy Interpreter when Shared Interpreter is enabled.

What type of PR is it?

Bug Fix

What is the Jira issue?

ZEPPELIN-3656

How should this be tested?

Run Livy Interpreter in an environment where Shared Interpreter is enabled and attempt to trigger code completions.

A unit test has been added to test the completion API when using a shared interpreter. Before applying the fix this test was failing with the same NPE.

Screenshots (if appropriate)

Questions:

  • Does the licenses files need update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

@zjffdu
Copy link
Contributor

zjffdu commented Jul 24, 2018

Please add unit test

@alexjbush alexjbush closed this Jul 25, 2018
@alexjbush alexjbush reopened this Jul 25, 2018
@alexjbush alexjbush closed this Jul 25, 2018
@alexjbush alexjbush reopened this Jul 25, 2018
@alexjbush
Copy link
Contributor Author

@zjffdu I've added a test and it builds in Travis: https://travis-ci.org/alexjbush/zeppelin/builds/407942421

Seems like it's failing to check out the code in Jenkins. Is there some reason for this?

Also, how can this be applied to master and 0.8.1? Will you do the merge to 0.8.1 after this is merged to master?

@zjffdu
Copy link
Contributor

zjffdu commented Jul 25, 2018

@alexjbush Not sure what's wrong with jenkins. Maybe you can try it later.
Regarding 0.8.1, I plan to release it round one month later. Because there's other issues needs to be fixed.

@alexjbush
Copy link
Contributor Author

alexjbush commented Jul 25, 2018

@zjffdu Yes, but can this fix go into both master and branch-0.8 branches? Who will do this cherry picking for branch-0.8?

All checks are now passing too.

@alexjbush alexjbush closed this Jul 25, 2018
@alexjbush alexjbush reopened this Jul 25, 2018
@zjffdu
Copy link
Contributor

zjffdu commented Jul 25, 2018

Don't worry, I will do the cherry-pick

@asfgit asfgit closed this in 8769d41 Jul 25, 2018
asfgit pushed a commit that referenced this pull request Jul 25, 2018
### What is this PR for?
Fix for NullPointerException when using code completion in the Livy Interpreter when Shared Interpreter is enabled.

### What type of PR is it?
Bug Fix

### What is the Jira issue?
[ZEPPELIN-3656](https://issues.apache.org/jira/browse/ZEPPELIN-3656)

### How should this be tested?
Run Livy Interpreter in an environment where Shared Interpreter is enabled and attempt to trigger code completions.

A unit test has been added to test the completion API when using a shared interpreter. Before applying the fix this test was failing with the same NPE.

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Alex Bush <alex.bush@coxauto.co.uk>

Closes #3094 from alexjbush/ZEPPELIN-3656 and squashes the following commits:

4f4a875 [Alex Bush] Correct completion test
cd0c213 [Alex Bush] Force a failing test
71562e0 [Alex Bush] Test IT for Changes
32aa7c5 [Alex Bush] [ZEPPELIN-3656] Fix for completion with Livy interpreter

(cherry picked from commit 8769d41)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
mckartha pushed a commit to syntechdev/zeppelin that referenced this pull request Aug 9, 2018
### What is this PR for?
Fix for NullPointerException when using code completion in the Livy Interpreter when Shared Interpreter is enabled.

### What type of PR is it?
Bug Fix

### What is the Jira issue?
[ZEPPELIN-3656](https://issues.apache.org/jira/browse/ZEPPELIN-3656)

### How should this be tested?
Run Livy Interpreter in an environment where Shared Interpreter is enabled and attempt to trigger code completions.

A unit test has been added to test the completion API when using a shared interpreter. Before applying the fix this test was failing with the same NPE.

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Alex Bush <alex.bush@coxauto.co.uk>

Closes apache#3094 from alexjbush/ZEPPELIN-3656 and squashes the following commits:

4f4a875 [Alex Bush] Correct completion test
cd0c213 [Alex Bush] Force a failing test
71562e0 [Alex Bush] Test IT for Changes
32aa7c5 [Alex Bush] [ZEPPELIN-3656] Fix for completion with Livy interpreter
mckartha pushed a commit to syntechdev/zeppelin that referenced this pull request Aug 9, 2018
### What is this PR for?
Fix for NullPointerException when using code completion in the Livy Interpreter when Shared Interpreter is enabled.

### What type of PR is it?
Bug Fix

### What is the Jira issue?
[ZEPPELIN-3656](https://issues.apache.org/jira/browse/ZEPPELIN-3656)

### How should this be tested?
Run Livy Interpreter in an environment where Shared Interpreter is enabled and attempt to trigger code completions.

A unit test has been added to test the completion API when using a shared interpreter. Before applying the fix this test was failing with the same NPE.

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Alex Bush <alex.bush@coxauto.co.uk>

Closes apache#3094 from alexjbush/ZEPPELIN-3656 and squashes the following commits:

4f4a875 [Alex Bush] Correct completion test
cd0c213 [Alex Bush] Force a failing test
71562e0 [Alex Bush] Test IT for Changes
32aa7c5 [Alex Bush] [ZEPPELIN-3656] Fix for completion with Livy interpreter

(cherry picked from commit 8769d41)
Signed-off-by: Jeff Zhang <zjffdu@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants