Luke Ashworth created ZEPPELIN-3065:
---------------------------------------

             Summary: Personalized mode does not allow multiple users to run 
the same paragraph at the same time
                 Key: ZEPPELIN-3065
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-3065
             Project: Zeppelin
          Issue Type: Bug
          Components: Core
            Reporter: Luke Ashworth


In personalized mode, if user A is running a paragraph and user B starts 
running the paragraph before user A's run has completed then user A's paragraph 
will remain stuck in the "running" state. Furthermore, all messages from user 
B's run be appended to the output for user A.

The cause of the issue is:
 - Both user A's and user B's runs will be executed by calling the jobRun 
method on the same Paragraph instance. The personalised state of each user's 
paragraph is supposed to be stored in the userParagraphMap Map.
 - The user field on the paragraph instance is set to the last user to start 
running the paragraph. This will initially be user A but change to user B when 
they start running it.
 - The user field on the paragraph instance is used to decide which user to set 
paragraph status updates for (in the setStatusToUserParagraph method, which 
sets the status on the relevant paragraph in the userParagraphMap). This means 
that both status updates for the "FINISHED" state will go to user B.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to