Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-5600

HttpReplicator does not properly handle server failures

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7.1
    • Fix Version/s: 4.8.1, 4.9, 6.0
    • Component/s: modules/replicator
    • Labels:
      None
    • Lucene Fields:
      New, Patch Available

      Description

      When ReplicationClient.updateNow() using an HttpReplicator encounters a server error (like Status Code 500), it throws a runtime exception instead of an IOException.
      Furthermore, it does not close the HttpClient it used, which leads to an Error if a BasicClientConnectionManager is used

        Attachments

        1. HttpClientBase-LUCENE-5600.java.patch
          2 kB
          Christoph Kaser
        2. HttpReplicatorTest.patch
          4 kB
          Christoph Kaser
        3. LUCENE-5600.patch
          9 kB
          Shai Erera

          Activity

            People

            • Assignee:
              shaie Shai Erera
              Reporter:
              christophk Christoph Kaser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: