Jongyoul Lee created ZEPPELIN-304:
-------------------------------------

             Summary: Intepreter.registeredInterpreted occurs failing tests 
while multiple tests runs
                 Key: ZEPPELIN-304
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-304
             Project: Zeppelin
          Issue Type: Bug
          Components: build
    Affects Versions: 0.6.0
            Reporter: Jongyoul Lee
            Assignee: Jongyoul Lee
             Fix For: 0.6.0


Maven shows me this error while packaging without {{-DskipTests}}

{noformat}
Jongyouls-MacBook-Pro:incubator-zeppelin jl$ mvn clean package
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.zeppelin.conf.ZeppelinConfigurationTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in 
[jar:file:/Users/jl/local/src/g/incubator-zeppelin/zeppelin-interpreter/target/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in 
[jar:file:/Users/jl/.m2/repository/org/slf4j/slf4j-log4j12/1.7.10/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.148 sec - in 
org.apache.zeppelin.conf.ZeppelinConfigurationTest
Running org.apache.zeppelin.interpreter.InterpreterFactoryTest
log4j:WARN No appenders could be found for logger 
(org.apache.zeppelin.interpreter.InterpreterFactory).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more 
info.
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.109 sec - in 
org.apache.zeppelin.interpreter.InterpreterFactoryTest
Running org.apache.zeppelin.notebook.NotebookTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.204 sec - in 
org.apache.zeppelin.notebook.NotebookTest
Running org.apache.zeppelin.notebook.NoteInterpreterLoaderTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.01 sec <<< 
FAILURE! - in org.apache.zeppelin.notebook.NoteInterpreterLoaderTest
testGetInterpreter(org.apache.zeppelin.notebook.NoteInterpreterLoaderTest)  
Time elapsed: 0.01 sec  <<< ERROR!
org.apache.zeppelin.interpreter.InterpreterException: group1 interpreter not 
found
        at 
org.apache.zeppelin.notebook.NoteInterpreterLoader.get(NoteInterpreterLoader.java:148)
        at 
org.apache.zeppelin.notebook.NoteInterpreterLoaderTest.testGetInterpreter(NoteInterpreterLoaderTest.java:63)

Running org.apache.zeppelin.notebook.repo.NotebookRepoSyncTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.101 sec - in 
org.apache.zeppelin.notebook.repo.NotebookRepoSyncTest
Running org.apache.zeppelin.util.UtilTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.01 sec - in 
org.apache.zeppelin.util.UtilTest

Results :

Tests in error:
  NoteInterpreterLoaderTest.testGetInterpreter:63 ยป Interpreter group1 
interpret...

Tests run: 27, Failures: 0, Errors: 1, Skipped: 0
{noformat}

I, however, couldn't find any error when I run only that test. 

{noformat}
mvn clean package -Dtest=NoteInterpreterLoaderTest.testGetInterpreter 
-DfailIfNoTests=false
{noformat}

I found the reason that Interpreter.registeredInterpreters. This is a static 
map used by all tests and some tests influences or were influenced by others. 
We should clean interpreter.registeredInterpreters for avoiding this 
ambiguousness.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to