[jira] Created: (LABS-472) [database] Concurrency problem in JPA database initialization

View: New views
3 Messages — Rating Filter:   Alert me  

[jira] Created: (LABS-472) [database] Concurrency problem in JPA database initialization

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[database] Concurrency problem in JPA database initialization
-------------------------------------------------------------

                 Key: LABS-472
                 URL: https://issues.apache.org/jira/browse/LABS-472
             Project: Labs
          Issue Type: Bug
          Components: Magma
    Affects Versions: Current
            Reporter: Simone Gianni
            Priority: Critical
             Fix For: Current


The problem is evident when more than one thread starts using the database during startup. For example, when there are jobs that run concurrently with main startup sequence.

Two different JPA connections are started, and one of the two reports errors during initialization.

A concurrent lock should be present to pause other threads waiting for a database connection until the first one is correctly initialized.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: labs-unsubscribe@...
For additional commands, e-mail: labs-help@...


[jira] Resolved: (LABS-472) [database] Concurrency problem in JPA database initialization

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Simone Gianni resolved LABS-472.
--------------------------------

    Resolution: Fixed

> [database] Concurrency problem in JPA database initialization
> -------------------------------------------------------------
>
>                 Key: LABS-472
>                 URL: https://issues.apache.org/jira/browse/LABS-472
>             Project: Labs
>          Issue Type: Bug
>          Components: Magma
>    Affects Versions: Current
>            Reporter: Simone Gianni
>            Assignee: Simone Gianni
>            Priority: Critical
>             Fix For: Current
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The problem is evident when more than one thread starts using the database during startup. For example, when there are jobs that run concurrently with main startup sequence.
> Two different JPA connections are started, and one of the two reports errors during initialization.
> A concurrent lock should be present to pause other threads waiting for a database connection until the first one is correctly initialized.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: labs-unsubscribe@...
For additional commands, e-mail: labs-help@...


[jira] Updated: (LABS-472) [database] Concurrency problem in JPA database initialization

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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

Simone Gianni updated LABS-472:
-------------------------------

    Assignee: Simone Gianni

> [database] Concurrency problem in JPA database initialization
> -------------------------------------------------------------
>
>                 Key: LABS-472
>                 URL: https://issues.apache.org/jira/browse/LABS-472
>             Project: Labs
>          Issue Type: Bug
>          Components: Magma
>    Affects Versions: Current
>            Reporter: Simone Gianni
>            Assignee: Simone Gianni
>            Priority: Critical
>             Fix For: Current
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> The problem is evident when more than one thread starts using the database during startup. For example, when there are jobs that run concurrently with main startup sequence.
> Two different JPA connections are started, and one of the two reports errors during initialization.
> A concurrent lock should be present to pause other threads waiting for a database connection until the first one is correctly initialized.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: labs-unsubscribe@...
For additional commands, e-mail: labs-help@...