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-1624] HeliumApplicationFactoryTest fails on master #1603

Conversation

Leemoonsoo
Copy link
Member

What is this PR for?

HeliumApplicationFactoryTest fails on master with following error if i run the test on local machine.

I'm fixing the issue by changing InterpreterFactory loads interpreter properties from interpreter-setting.json file, interpreter-setting.json classresource and Interpreter.register() call

What type of PR is it?

Bug Fix

Todos

  • - Fix the problem

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-1624

How should this be tested?

try run HeliumApplicationFactoryTest unittest and see if it successes

Screenshots (if appropriate)

Questions:

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

@Leemoonsoo Leemoonsoo changed the title [HOTFIX] HeliumApplicationFactoryTest fails on master [ZEPPELIN-1624] HeliumApplicationFactoryTest fails on master Nov 5, 2016
@Leemoonsoo Leemoonsoo force-pushed the fix_helium_application_factory_test branch from 89b44a3 to e511783 Compare November 5, 2016 04:10
} catch (Throwable t) {
// nothing to do
registerInterpreterFromPath(interpreterDirString, interpreterJson);
registerInterpreterFromResource(cl, interpreterDirString, interpreterJson);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would cause interpreter to be registered twice which make it difficult to configure the default interpreter setting. I change the method signature to return boolean to indicate whether it is registered successfully.
See my comments.

         * Register interpreter by the following ordering
         * 1. Register it from path {ZEPPELIN_HOME}/interpreter/{interpreter_name}/
         *    interpreter-setting.json
         * 2. Register it from interpreter-setting.json in classpath
         *    {ZEPPELIN_HOME}/interpreter/{interpreter_name}
         * 3. Register it by Interpreter.register

@bzz
Copy link
Member

bzz commented Nov 8, 2016

on mvn clean package -pl \!zeppelin-distribution I got

Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.193 sec - in org.apache.zeppelin.search.LuceneSearchTest

Results :

Tests in error:
  HeliumApplicationFactoryTest.testUnloadOnInterpreterUnbind:232 » ClassCast jav...
  HeliumApplicationFactoryTest.testLoadRunUnloadApplication:148 » ClassCast java...
  HeliumApplicationFactoryTest.testUnloadOnInterpreterRestart:299 » ClassCast ja...
  HeliumApplicationFactoryTest.testUnloadOnParagraphRemove:193 » ClassCast java....

Tests run: 116, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Zeppelin ........................................... SUCCESS [  6.317 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [02:35 min]
[INFO] Zeppelin: Zengine .................................. FAILURE [02:48 min]

Am I doing something wrong?

@bzz
Copy link
Member

bzz commented Nov 23, 2016

@Leemoonsoo do you think it's worth re-basing on latest master?

Tried mvn clean package -pl \!zeppelin-distribution on this branch again, got:

Results :

Tests in error:
  HeliumApplicationFactoryTest.testUnloadOnInterpreterUnbind:232 » ClassCast jav...
  HeliumApplicationFactoryTest.testLoadRunUnloadApplication:148 » ClassCast java...
  HeliumApplicationFactoryTest.testUnloadOnInterpreterRestart:299 » ClassCast ja...
  HeliumApplicationFactoryTest.testUnloadOnParagraphRemove:193 » ClassCast java....

Tests run: 116, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Zeppelin ........................................... SUCCESS [  8.249 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [02:30 min]
[INFO] Zeppelin: Zengine .................................. FAILURE [02:47 min]
[INFO] Zeppelin: Display system apis ...................... SKIPPED

My env

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T20:57:37+09:00)
Maven home: /usr/local/Cellar/maven/3.3.3/libexec
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.5", arch: "x86_64", family: "mac"

@bzz
Copy link
Member

bzz commented Nov 30, 2016

ping @Leemoonsoo

@bzz
Copy link
Member

bzz commented Dec 14, 2016

2 weeks ping @Leemoonsoo

@asfgit asfgit closed this in c38a0a0 May 9, 2018
asfgit pushed a commit that referenced this pull request May 9, 2018
close #83
close #86
close #125
close #133
close #139
close #146
close #193
close #203
close #246
close #262
close #264
close #273
close #291
close #299
close #320
close #347
close #389
close #413
close #423
close #543
close #560
close #658
close #670
close #728
close #765
close #777
close #782
close #783
close #812
close #822
close #841
close #843
close #878
close #884
close #918
close #989
close #1076
close #1135
close #1187
close #1231
close #1304
close #1316
close #1361
close #1385
close #1390
close #1414
close #1422
close #1425
close #1447
close #1458
close #1466
close #1485
close #1492
close #1495
close #1497
close #1536
close #1545
close #1561
close #1577
close #1600
close #1603
close #1678
close #1695
close #1739
close #1748
close #1765
close #1767
close #1776
close #1783
close #1799
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants