Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ZEPPELIN-5744] Allow NoteManager for concurrent operation #4374

Merged
merged 1 commit into from Jun 3, 2022

Conversation

saLeox
Copy link
Contributor

@saLeox saLeox commented May 28, 2022

What is this PR for?

When multi users perform some notebook/folder operation, like rename or move, some notebooks become not accessible from zeppelin page, while they are still existing on the HDFS, and only resort to restart Zeppelin daemon to solve the problem.

In this PR, unit test is created to simulate the concurrent request scenario and reproduce the issue successfully, including the operations of saveNote, moveNote, moveFolder and removeNote.

Accordingly, some changes are made to ensure thread safety of note manager operation, so that the note or folder info will not be lost, after which the unit test should get passed.

What type of PR is it?

Bug Fix

What is the Jira issue?

How should this be tested?

  • Automated unit tests for the change is added.

Questions:

  • Does the licenses files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

Copy link
Contributor

@Reamer Reamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, it looks really good. Just a few small suggestions. Please adjust the imports.

Copy link
Contributor

@Reamer Reamer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jongyoul jongyoul merged commit 525d361 into apache:master Jun 3, 2022
akoira pushed a commit to akoira/zeppelin that referenced this pull request Jun 24, 2022
akoira pushed a commit to akoira/zeppelin that referenced this pull request Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants