mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
ZEPPELIN-501: restore NotebookRepoSync.sync() visibility + compiler warning cleanup
This commit is contained in:
parent
e80c3e5f8c
commit
5a18bc8cf5
2 changed files with 4 additions and 7 deletions
|
|
@ -134,10 +134,11 @@ public class NotebookRepoSync implements NotebookRepo {
|
|||
}
|
||||
|
||||
/**
|
||||
* copy new/updated notes from source to destination storage
|
||||
* Copies new/updated notes from source to destination storage
|
||||
*
|
||||
* @throws IOException
|
||||
*/
|
||||
public void sync(int sourceRepoIndex, int destRepoIndex) throws IOException {
|
||||
void sync(int sourceRepoIndex, int destRepoIndex) throws IOException {
|
||||
LOG.info("Sync started");
|
||||
NotebookRepo srcRepo = getRepo(sourceRepoIndex);
|
||||
NotebookRepo dstRepo = getRepo(destRepoIndex);
|
||||
|
|
|
|||
|
|
@ -32,16 +32,12 @@ import org.apache.zeppelin.interpreter.mock.MockInterpreter1;
|
|||
import org.apache.zeppelin.notebook.JobListenerFactory;
|
||||
import org.apache.zeppelin.notebook.Note;
|
||||
import org.apache.zeppelin.notebook.Notebook;
|
||||
import org.apache.zeppelin.notebook.NotebookTest;
|
||||
import org.apache.zeppelin.notebook.Paragraph;
|
||||
import org.apache.zeppelin.scheduler.JobListener;
|
||||
import org.apache.zeppelin.scheduler.SchedulerFactory;
|
||||
import org.apache.zeppelin.scheduler.Job.Status;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class VFSNotebookRepoTest implements JobListenerFactory{
|
||||
private ZeppelinConfiguration conf;
|
||||
|
|
@ -91,7 +87,7 @@ public class VFSNotebookRepoTest implements JobListenerFactory{
|
|||
note.getNoteReplLoader().setInterpreters(factory.getDefaultInterpreterSettingList());
|
||||
|
||||
Paragraph p1 = note.addParagraph();
|
||||
Map config = p1.getConfig();
|
||||
Map<String, Object> config = p1.getConfig();
|
||||
config.put("enabled", true);
|
||||
p1.setConfig(config);
|
||||
p1.setText("%mock1 hello world");
|
||||
|
|
|
|||
Loading…
Reference in a new issue