You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "florpor (JIRA)" <ji...@apache.org> on 2019/05/01 15:25:00 UTC

[jira] [Created] (ZEPPELIN-4143) Using two notebook storage classes - second repo's notes are not synced

florpor created ZEPPELIN-4143:
---------------------------------

             Summary: Using two notebook storage classes - second repo's notes are not synced
                 Key: ZEPPELIN-4143
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-4143
             Project: Zeppelin
          Issue Type: Bug
          Components: zeppelin-zengine
    Affects Versions: 0.8.1
            Reporter: florpor


How to reproduce (I tested with S3 repo as the second storage):
 # Have a Zeppelin S3 repo with pre-existing notes
 # Set the "zeppelin.notebook.storage" setting set to two classes - the first one can be any class and the second one the S3 class. eg: "org.apache.zeppelin.notebook.repo.GitNotebookRepo,org.apache.zeppelin.notebook.repo.S3NotebookRepo"
(other settings are also required for the S3 repo)
 # Set the "zeppelin.anonymous.allowed" setting to false and use shiro to set up some user
 # Start Zeppelin and only the first repo's notes are loaded
 # If you click the "Reload notes from storage" button notes from the second repo will be loaded as well

If anonymous access is allowed, notes from the second repo will be loaded as soon as Zeppelin starts due to a condition at the bottom of NotebookRepoSync's constructor:
{code:java}
    // sync for anonymous mode on start
    if (getRepoCount() > 1 && conf.getBoolean(ConfVars.ZEPPELIN_ANONYMOUS_ALLOWED)) {
      try {
        sync(AuthenticationInfo.ANONYMOUS);
      } catch (IOException e) {
        LOG.error("Couldn't sync on start ", e);
      }
    }
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)