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 "Ryuuichi Kumai (JIRA)" <ji...@apache.org> on 2009/02/11 09:42:59 UTC

[jira] Created: (SOLR-1017) Concurrency problem with last_index_time

Concurrency problem with last_index_time
----------------------------------------

                 Key: SOLR-1017
                 URL: https://issues.apache.org/jira/browse/SOLR-1017
             Project: Solr
          Issue Type: Bug
          Components: contrib - DataImportHandler
    Affects Versions: 1.3
            Reporter: Ryuuichi Kumai
         Attachments: SOLR-1017.patch

The 'last_index_time' value in DIH is not thread-safe.
If data import is executed concurrently (in multiple cores), last_index_time value might be invalid value.
I think this problem is caused by DataImporter#DATE_TIME_FORMAT. The static instance should not be used in many threads since java.text.SimpleDateFormat is not thread-safe.

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


[jira] Assigned: (SOLR-1017) Concurrency problem with last_index_time

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

Shalin Shekhar Mangar reassigned SOLR-1017:
-------------------------------------------

    Assignee: Shalin Shekhar Mangar

> Concurrency problem with last_index_time
> ----------------------------------------
>
>                 Key: SOLR-1017
>                 URL: https://issues.apache.org/jira/browse/SOLR-1017
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Ryuuichi Kumai
>            Assignee: Shalin Shekhar Mangar
>         Attachments: SOLR-1017.patch
>
>
> The 'last_index_time' value in DIH is not thread-safe.
> If data import is executed concurrently (in multiple cores), last_index_time value might be invalid value.
> I think this problem is caused by DataImporter#DATE_TIME_FORMAT. The static instance should not be used in many threads since java.text.SimpleDateFormat is not thread-safe.

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


[jira] Resolved: (SOLR-1017) Concurrency problem with last_index_time

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

Shalin Shekhar Mangar resolved SOLR-1017.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.4

Committed revision 743299.

Thanks for catching this and for the patch Ryuuichi!

> Concurrency problem with last_index_time
> ----------------------------------------
>
>                 Key: SOLR-1017
>                 URL: https://issues.apache.org/jira/browse/SOLR-1017
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Ryuuichi Kumai
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 1.4
>
>         Attachments: SOLR-1017.patch
>
>
> The 'last_index_time' value in DIH is not thread-safe.
> If data import is executed concurrently (in multiple cores), last_index_time value might be invalid value.
> I think this problem is caused by DataImporter#DATE_TIME_FORMAT. The static instance should not be used in many threads since java.text.SimpleDateFormat is not thread-safe.

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


[jira] Updated: (SOLR-1017) Concurrency problem with last_index_time

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

Ryuuichi Kumai updated SOLR-1017:
---------------------------------

    Attachment: SOLR-1017.patch

> Concurrency problem with last_index_time
> ----------------------------------------
>
>                 Key: SOLR-1017
>                 URL: https://issues.apache.org/jira/browse/SOLR-1017
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 1.3
>            Reporter: Ryuuichi Kumai
>         Attachments: SOLR-1017.patch
>
>
> The 'last_index_time' value in DIH is not thread-safe.
> If data import is executed concurrently (in multiple cores), last_index_time value might be invalid value.
> I think this problem is caused by DataImporter#DATE_TIME_FORMAT. The static instance should not be used in many threads since java.text.SimpleDateFormat is not thread-safe.

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