You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2022/03/01 07:48:04 UTC

[GitHub] [zeppelin] woowahan-jaehoon commented on a change in pull request #4288: [ZEPPELIN-5632] zeppelin-zengine: Skip load notebook when it is damaged.

woowahan-jaehoon commented on a change in pull request #4288:
URL: https://github.com/apache/zeppelin/pull/4288#discussion_r816519912



##########
File path: zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/NoteManager.java
##########
@@ -78,8 +78,8 @@ private void init() throws IOException {
         {
           try {
             addOrUpdateNoteNode(new Note(new NoteInfo(entry.getKey(), entry.getValue())));
-          } catch (IOException e) {
-            LOGGER.warn(e.getMessage());
+          } catch (Throwable e) {
+            LOGGER.warn("addOrUpdateNoteNode Fail: {}", entry.getKey() + " - " + e.getMessage(), e);

Review comment:
       > I think it is better to catch the exception and log the warning when invoking NotebookRepos#get
   
   In my case, Throwed exception that line when I started zeppelin, not open notebook.
   
   I checked `addOrUpdateNoteNode` method, It isn't use `NotebookRepos#get`.
   
   Why do you think that?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@zeppelin.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org