This is an automated email from the ASF dual-hosted git repository.

jongyoul pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ed5a05c35 [ZEPPELIN-5927]Solve the concurrency calls to 
`saveNoteAuth`. (#4613)
7ed5a05c35 is described below

commit 7ed5a05c358e6af7819a93619587d1dd41116109
Author: youshaojun <[email protected]>
AuthorDate: Mon Jun 12 15:52:11 2023 +0800

    [ZEPPELIN-5927]Solve the concurrency calls to `saveNoteAuth`. (#4613)
---
 .../main/java/org/apache/zeppelin/notebook/AuthorizationService.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/AuthorizationService.java
 
b/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/AuthorizationService.java
index 8c05ac09a5..77565f3029 100644
--- 
a/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/AuthorizationService.java
+++ 
b/zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/AuthorizationService.java
@@ -99,7 +99,7 @@ public class AuthorizationService implements 
ClusterEventListener {
    *
    * @throws IOException
    */
-  public void saveNoteAuth() throws IOException {
+  public synchronized void saveNoteAuth() throws IOException {
     configStorage.save(new NotebookAuthorizationInfoSaving(this.notesAuth));
   }
 

Reply via email to