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

HttpReplicator does not properly handle server failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7.1
    • 4.8.1, 4.9, 6.0
    • modules/replicator
    • None
    • 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. HttpReplicatorTest.patch
          4 kB
          Christoph Kaser
        2. HttpClientBase-LUCENE-5600.java.patch
          2 kB
          Christoph Kaser
        3. LUCENE-5600.patch
          9 kB
          Shai Erera

        Activity

          People

            shaie Shai Erera
            christophk Christoph Kaser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: