remove syncOnStart

This commit is contained in:
Khalid Huseynov 2016-10-19 17:05:26 +09:00
parent b104249db8
commit 05afa2a11a

View file

@ -94,19 +94,8 @@ public class NotebookRepoSync implements NotebookRepo {
LOG.info("No storages could be initialized, using default {} storage", defaultStorage);
initializeDefaultStorage(conf);
}
//syncOnStart();
}
private void syncOnStart() {
if (getRepoCount() > 1) {
try {
AuthenticationInfo subject = new AuthenticationInfo("anonymous");
sync(0, 1, subject);
} catch (IOException e) {
LOG.warn("Failed to sync with secondary storage on start {}", e);
}
}
}
@SuppressWarnings("static-access")
private void initializeDefaultStorage(ZeppelinConfiguration conf) {
Class<?> notebookStorageClass;