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

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

    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

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: