Attila Doroszlai created HDDS-7958:
--------------------------------------

             Summary: Ozone client not closed in integration tests
                 Key: HDDS-7958
                 URL: https://issues.apache.org/jira/browse/HDDS-7958
             Project: Apache Ozone
          Issue Type: Bug
          Components: test
            Reporter: Attila Doroszlai


Tons of integration tests create Ozone client but do not close it.

Simple examples:

https://github.com/apache/ozone/blob/a8d20de041baaf2b6345d833797484389740b609/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestObjectStore.java#L82

https://github.com/apache/ozone/blob/a8d20de041baaf2b6345d833797484389740b609/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOzoneSnapshotRestore.java#L115

{{createBucket}} returns an {{OzoneBucket}} with a new client, but 
{{OzoneBucket}} provides no way to close the underlying client:

https://github.com/apache/ozone/blob/a8d20de041baaf2b6345d833797484389740b609/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/TestDataUtil.java#L78



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to