You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2011/06/09 09:10:59 UTC

[jira] [Created] (SOLR-2582) UIMAUpdateRequestProcessor error handling with small texts

UIMAUpdateRequestProcessor error handling with small texts
----------------------------------------------------------

                 Key: SOLR-2582
                 URL: https://issues.apache.org/jira/browse/SOLR-2582
             Project: Solr
          Issue Type: Bug
    Affects Versions: 3.2
            Reporter: Tommaso Teofili
             Fix For: 3.3


In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2582) Use uniqueKey for error log in UIMAUpdateRequestProcessor

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13048320#comment-13048320 ] 

Koji Sekiguchi commented on SOLR-2582:
--------------------------------------

I'll commit tomorrow.

> Use uniqueKey for error log in UIMAUpdateRequestProcessor 
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>         Attachments: SOLR-2582.patch
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2582) UIMAUpdateRequestProcessor error handling with small texts

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046370#comment-13046370 ] 

Tommaso Teofili commented on SOLR-2582:
---------------------------------------

A possible fix which still allows an easy debug could be to get the "logging field" property on processor initialization, then if that was not configured it's possible to get the uniquekey from the SolrCore passed in the initialize() method : 

  String logFieldName = solrUIMAConfiguration.getLogField()!= null ? solrUIMAConfiguration.getLogField() : solrCore.getSchema().getUniqueKeyField().getName();


> UIMAUpdateRequestProcessor error handling with small texts
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>             Fix For: 3.3
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2582) UIMAUpdateRequestProcessor error handling with small texts

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046927#comment-13046927 ] 

Koji Sekiguchi commented on SOLR-2582:
--------------------------------------

bq. it's possible to get the uniquekey from the SolrCore passed in the initialize() method

Yep, we got solrCore. It was a blind side. I don't know why I passed over it!

bq. I think they're related but the approach proposed here is slightly different since considers the uniquekey instead of the text analyzed as the alternative to the logField. Maybe the best solution is applying the patch in SOLR-2579 and then make the error message more useful with other debugging informations.

Will do.

> UIMAUpdateRequestProcessor error handling with small texts
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>             Fix For: 3.3
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2582) Use uniqueKey for error log in UIMAUpdateRequestProcessor

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

Koji Sekiguchi updated SOLR-2582:
---------------------------------

    Attachment: SOLR-2582.patch

> Use uniqueKey for error log in UIMAUpdateRequestProcessor 
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>         Attachments: SOLR-2582.patch
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2582) UIMAUpdateRequestProcessor error handling with small texts

Posted by "Tommaso Teofili (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046544#comment-13046544 ] 

Tommaso Teofili commented on SOLR-2582:
---------------------------------------

I think they're related but the approach proposed here is slightly different since considers the uniquekey instead of the text analyzed as the alternative to the logField. Maybe the best solution is applying the patch in SOLR-2579 and then make the error message more useful with other debugging informations.

> UIMAUpdateRequestProcessor error handling with small texts
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>             Fix For: 3.3
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2582) UIMAUpdateRequestProcessor error handling with small texts

Posted by "Elmer Garduno (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046534#comment-13046534 ] 

Elmer Garduno commented on SOLR-2582:
-------------------------------------

Sorry it seems to me as a duplicate but I see its a different problem. I've removed the link.

> UIMAUpdateRequestProcessor error handling with small texts
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>             Fix For: 3.3
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Updated] (SOLR-2582) Use uniqueKey for error log in UIMAUpdateRequestProcessor

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

Koji Sekiguchi updated SOLR-2582:
---------------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 4.0
         Assignee: Koji Sekiguchi
       Issue Type: Improvement  (was: Bug)
          Summary: Use uniqueKey for error log in UIMAUpdateRequestProcessor   (was: UIMAUpdateRequestProcessor error handling with small texts)

Changed the issue type to improvement because the "bug part" of this issue is duplicate of SOLR-2579, which has been fixed.

> Use uniqueKey for error log in UIMAUpdateRequestProcessor 
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2582) Use uniqueKey for error log in UIMAUpdateRequestProcessor

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

Koji Sekiguchi resolved SOLR-2582.
----------------------------------

    Resolution: Fixed

trunk: Committed revision 1135011.
3x: Committed revision 1135012.

> Use uniqueKey for error log in UIMAUpdateRequestProcessor 
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>            Assignee: Koji Sekiguchi
>            Priority: Minor
>             Fix For: 3.3, 4.0
>
>         Attachments: SOLR-2582.patch
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2582) UIMAUpdateRequestProcessor error handling with small texts

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13046532#comment-13046532 ] 

Koji Sekiguchi commented on SOLR-2582:
--------------------------------------

Duplicate of SOLR-2579 ?

> UIMAUpdateRequestProcessor error handling with small texts
> ----------------------------------------------------------
>
>                 Key: SOLR-2582
>                 URL: https://issues.apache.org/jira/browse/SOLR-2582
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 3.2
>            Reporter: Tommaso Teofili
>             Fix For: 3.3
>
>
> In UIMAUpdateRequestProcessor the catch block in processAdd() method can have a StringIndexOutOfBoundsException while composing the error message if the logging field is not set and the text being processed is shorter than 100 chars (...append(text.substring(0, 100))...).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org