You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ritesh H Shukla (Jira)" <ji...@apache.org> on 2023/02/13 04:03:00 UTC

[jira] [Updated] (HDDS-7958) Ozone client not closed in integration tests

     [ https://issues.apache.org/jira/browse/HDDS-7958?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ritesh H Shukla updated HDDS-7958:
----------------------------------
    Priority: Critical  (was: Major)

> 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
>            Priority: Critical
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org