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

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

    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

        1. SOLR-2579.patch
          3 kB
          Koji Sekiguchi
        2. SOLR-2579.patch
          2 kB
          Elmer Garduno

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: