Grokbase Groups Lucene dev June 2011
FAQ
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

Search Discussions

  • Tommaso Teofili (JIRA) at Jun 9, 2011 at 7:24 am
    [ 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
  • Koji Sekiguchi (JIRA) at Jun 9, 2011 at 1:30 pm
    [ 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
  • Elmer Garduno (JIRA) at Jun 9, 2011 at 1:34 pm
    [ 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
  • Tommaso Teofili (JIRA) at Jun 9, 2011 at 1:54 pm
    [ 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
  • Koji Sekiguchi (JIRA) at Jun 10, 2011 at 12:02 am
    [ 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
  • Koji Sekiguchi (JIRA) at Jun 10, 2011 at 2:47 pm
    [ 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
  • Koji Sekiguchi (JIRA) at Jun 10, 2011 at 2:49 pm
    [ 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
  • Koji Sekiguchi (JIRA) at Jun 12, 2011 at 1:59 pm
    [ 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
  • Koji Sekiguchi (JIRA) at Jun 13, 2011 at 2:44 am
    [ 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJun 9, '11 at 7:11a
activeJun 13, '11 at 2:44a
posts10
users1
websitelucene.apache.org

1 user in discussion

Koji Sekiguchi (JIRA): 10 posts

People

Translate

site design / logo © 2022 Grokbase