Uploaded image for project: 'Hibernate Search'
  1. HSEARCH-2679

Improve error handling/reporting around Elasticsearch request sending

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.8.0.Beta2
    • Component/s: None
    • Labels:
      None

      Description

      1. The version detection will fail miserably with an NPE if the request "GET /" happens not to return the version (for instance, if the request failed because of missing authentication), and we won't have any details about what happened
      2. When we fail to parse the response to JSON, we don't include the response in the resulting exceptions; not even the status code
      3. When the generateResult() method fails in a SimpleElasticsearchWork, we don't wrap the exception to add more context (such as the request and response). This makes it difficult to interpret the exception.

        Attachments

          Activity

            People

            • Assignee:
              yrodiere Yoann Rodière
              Reporter:
              yrodiere Yoann Rodière
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: