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

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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.2.1, 3.3, 4.0-ALPHA
    • Component/s: None
    • Labels:
      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

            People

            • Assignee:
              koji Koji Sekiguchi
              Reporter:
              elmer.garduno Elmer Garduno

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment