Skip to content

Commit 7ed5a05

Browse files
authored
[ZEPPELIN-5927]Solve the concurrency calls to saveNoteAuth. (#4613)
1 parent ce577ad commit 7ed5a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zeppelin-zengine/src/main/java/org/apache/zeppelin/notebook/AuthorizationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void createNoteAuth(String noteId, AuthenticationInfo subject) {
9999
*
100100
* @throws IOException
101101
*/
102-
public void saveNoteAuth() throws IOException {
102+
public synchronized void saveNoteAuth() throws IOException {
103103
configStorage.save(new NotebookAuthorizationInfoSaving(this.notesAuth));
104104
}
105105

0 commit comments

Comments
 (0)