You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Walter Ferrara (JIRA)" <ji...@apache.org> on 2008/08/26 14:13:44 UTC

[jira] Created: (SOLR-728) Add synchronization to avoid race condition of multiple imports working concurrently

Add synchronization to avoid race condition of multiple imports working concurrently
------------------------------------------------------------------------------------

                 Key: SOLR-728
                 URL: https://issues.apache.org/jira/browse/SOLR-728
             Project: Solr
          Issue Type: Improvement
          Components: contrib - DataImportHandler
    Affects Versions: 1.3
            Reporter: Walter Ferrara
            Priority: Minor


see http://www.nabble.com/dataimporthandler-and-multiple-delta-import-td19160129.html
DataimportHandler import command should check if status is not idle, to avoid race conditions

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


[jira] Updated: (SOLR-728) Add synchronization to avoid race condition of multiple imports working concurrently

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-728:
---------------------------------------

    Fix Version/s:     (was: 1.3)
                   1.4

Unmarking this for 1.3 -- the changes may be too invasive. We shall fix this in the next release.

> Add synchronization to avoid race condition of multiple imports working concurrently
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-728
>                 URL: https://issues.apache.org/jira/browse/SOLR-728
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Walter Ferrara
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>
> see http://www.nabble.com/dataimporthandler-and-multiple-delta-import-td19160129.html
> DataimportHandler import command should check if status is not idle, to avoid race conditions

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


[jira] Updated: (SOLR-728) Add synchronization to avoid race condition of multiple imports working concurrently

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-728:
---------------------------------------

    Attachment: SOLR-728.patch

Patch which uses ReentrantLock in DataImporter to make sure only one import is running at a given time.

I'll commit this in a day or two.

> Add synchronization to avoid race condition of multiple imports working concurrently
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-728
>                 URL: https://issues.apache.org/jira/browse/SOLR-728
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Walter Ferrara
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-728.patch
>
>
> see http://www.nabble.com/dataimporthandler-and-multiple-delta-import-td19160129.html
> DataimportHandler import command should check if status is not idle, to avoid race conditions

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


[jira] Resolved: (SOLR-728) Add synchronization to avoid race condition of multiple imports working concurrently

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar resolved SOLR-728.
----------------------------------------

    Resolution: Fixed

Committed revision 707295.

Thanks Walter!

> Add synchronization to avoid race condition of multiple imports working concurrently
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-728
>                 URL: https://issues.apache.org/jira/browse/SOLR-728
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Walter Ferrara
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-728.patch, SOLR-728.patch
>
>
> see http://www.nabble.com/dataimporthandler-and-multiple-delta-import-td19160129.html
> DataimportHandler import command should check if status is not idle, to avoid race conditions

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


[jira] Updated: (SOLR-728) Add synchronization to avoid race condition of multiple imports working concurrently

Posted by "Shalin Shekhar Mangar (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-728?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shalin Shekhar Mangar updated SOLR-728:
---------------------------------------

    Attachment: SOLR-728.patch

The previous patch did not pass the test due to incorrect logic when dealing with first use.

Attached patch fixes it. I'll commit this shortly.

> Add synchronization to avoid race condition of multiple imports working concurrently
> ------------------------------------------------------------------------------------
>
>                 Key: SOLR-728
>                 URL: https://issues.apache.org/jira/browse/SOLR-728
>             Project: Solr
>          Issue Type: Improvement
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Walter Ferrara
>            Assignee: Shalin Shekhar Mangar
>            Priority: Minor
>             Fix For: 1.4
>
>         Attachments: SOLR-728.patch, SOLR-728.patch
>
>
> see http://www.nabble.com/dataimporthandler-and-multiple-delta-import-td19160129.html
> DataimportHandler import command should check if status is not idle, to avoid race conditions

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