You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "yousj (Jira)" <ji...@apache.org> on 2023/06/09 04:45:00 UTC

[jira] [Created] (ZEPPELIN-5927) Solve the concurrency calls to `saveNoteAuth`

yousj created ZEPPELIN-5927:
-------------------------------

             Summary: Solve the concurrency calls to `saveNoteAuth`
                 Key: ZEPPELIN-5927
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-5927
             Project: Zeppelin
          Issue Type: Bug
          Components: zeppelin-zengine
    Affects Versions: 0.10.1, 0.10.0, 0.9.0
            Reporter: yousj
             Fix For: 0.10.1, 0.10.0, 0.9.0


I have problems the concurrency calls to `saveNoteAuth`.
[related pull request |[https://github.com/apache/zeppelin/pull/4563],] this pull request migrates solve the concurrency problem caused by multiple concurrent calls to `org.apache.zeppelin.notebook.AuthorizationService#saveNoteAuth`, but this can result in concurrent modifications to `notebook authorization.json`, then throw java.nio.file.NoSuchFileException.
{code:java}
Caused by: java.nio.file.NoSuchFileException: /usr/local/zeppelin-0.10.1-bin-all/conf/notebook-authorization.json
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:447)
    at sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:262)
    at java.nio.file.Files.move(Files.java:1395)
    at org.apache.zeppelin.util.FileUtils.atomicWriteToFile(FileUtils.java:60)
    at org.apache.zeppelin.util.FileUtils.atomicWriteToFile(FileUtils.java:71)
    at org.apache.zeppelin.storage.LocalConfigStorage.save(LocalConfigStorage.java:71)
    at org.apache.zeppelin.notebook.AuthorizationService.saveNoteAuth(AuthorizationService.java:109)
    at org.apache.zeppelin.notebook.Notebook.createNote(Notebook.java:258)
    at org.apache.zeppelin.service.NotebookService.createNote(NotebookService.java:168) {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)