Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-2827

try-with-resources should not be used when OkHttp Response object is returned

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.4.0.Beta1
    • None
    • testcontainers
    • None
    • False
    • False
    • Undefined

      There's currently an issue with io.debezium.testing.testcontainers.DebeziumContainer#executeGETRequestSuccessfully.

      The sub-call to executeGETRequest is executed with a try-with-resources block, which will auto-close the response when the try block is left. The executeGETRequestSuccessfully method returns the response which will be used in calling methods, which fails because the underlying response is already closed by the try-with-resources block and access to the response is not possible anymore.

       

              rk3rn3r René Kerner
              rk3rn3r René Kerner
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: