You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Renata Halmschlager (Jira)" <ji...@apache.org> on 2026/06/23 12:01:00 UTC

[jira] [Created] (HDDS-15648) Improve TestSnapshotDiffManager#testThreadPoolIsFull drain scenario by filling the pool before releasing workers

Renata Halmschlager created HDDS-15648:
------------------------------------------

             Summary: Improve TestSnapshotDiffManager#testThreadPoolIsFull drain scenario by filling the pool before releasing workers
                 Key: HDDS-15648
                 URL: https://issues.apache.org/jira/browse/HDDS-15648
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Renata Halmschlager


Follow-up to HDDS-11063 (suggested in [review|https://github.com/apache/ozone/pull/10581#discussion_r3456128486])

The drain scenario in TestSnapshotDiffManager#testThreadPoolIsFull currently fully drains the pool after every batch, so it only checks that jobs are accepted when the pool is empty.

A better check would be:
 * Keep the latch closed until {{full_thread_pool_size}} jobs are submitted
 * Open the latch
 * Submit new jobs when {{totalSubmitted - completedJobs.get() < full_thread_pool_size}}



--
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