Uploaded image for project: 'Zeppelin'
  1. Zeppelin
  2. ZEPPELIN-5511

The incorrect use of Immediate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.10.0
    • None
    • zeppelin-server
    • None

    Description

      incorrect use of Immediate.class when start zeppelin-server

       

      setp1: add log code:

      //java
      
      public NotebookRepoSync(ZeppelinConfiguration conf) throws IOException {
        init(conf);
        // add code
        LOGGER.info("not boot repo sync:"+ this.hashCode());
      }
      

       

      step2: start server

      step3: request api: http://localhost:8080/api/notebook-repositories

      step4:  check the log, “not boot repo sync” will print twice,but not the same hashcode

       

      so,the instance which new at start the server is never use!

      ps:  after test, I found that it work because addClasses after new ServiceLocator

      Attachments

        Activity

          People

            Unassigned Unassigned
            leguwa 李观华
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: