You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@livy.apache.org by "Meisam (JIRA)" <ji...@apache.org> on 2018/07/16 21:28:00 UTC

[jira] [Assigned] (LIVY-239) Moving the logic to generate session IDs from Session Manager to SessionStore

     [ https://issues.apache.org/jira/browse/LIVY-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Meisam reassigned LIVY-239:
---------------------------

    Assignee: Meisam

> Moving the logic to generate session IDs from Session Manager to SessionStore
> -----------------------------------------------------------------------------
>
>                 Key: LIVY-239
>                 URL: https://issues.apache.org/jira/browse/LIVY-239
>             Project: Livy
>          Issue Type: New Feature
>          Components: Server
>    Affects Versions: 0.3
>         Environment: git commit hash: 5de6cf21c61db4093646a23c65c37c8b52202dc8
>            Reporter: Meisam
>            Assignee: Meisam
>            Priority: Minor
>
> Livy is using an atomic integer in `SessionManager` to generate unique session IDs and `SessionStore` saves and retrieves the generated IDs. I am proposing to move the atomic counter from `SessionManager` to `SessionStore`. The immediate benefit of this change is that logic to generate and persist session IDs won't be scattered in multiple places anymore, which makes it easier to guarantee sessions IDs are generated uniquely and atomically. This would be even more helpful to implement multimode HA where generating session IDs separately on  Livy nodes can easily lead to inconsistent values.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)