Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2579

UIMAUpdateRequestProcessor ignore error fails if text.length() < 0

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2
    • 3.2.1, 3.3, 4.0-ALPHA
    • None
    • None

    Description

      If UIMAUpdateRequestProcessor is configured to ignore errors, an exception is raised when logging the error and text.length() < 100.

      if (solrUIMAConfiguration.isIgnoreErrors())
      log.warn(new StringBuilder("skip the text processing due to ")
      .append(e.getLocalizedMessage()).append(optionalFieldInfo)
      .append(" text=\"").append(text.substring(0, 100)).append("...\"").toString());
      else

      { throw new SolrException(ErrorCode.SERVER_ERROR, new StringBuilder("processing error: ") .append(e.getLocalizedMessage()).append(optionalFieldInfo) .append(" text=\"").append(text.substring(0, 100)).append("...\"").toString(), e); }

      I'm submitting a patch.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            koji Koji Sekiguchi
            elmer.garduno Elmer Garduno
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment