[
https://issues.apache.org/jira/browse/HDDS-15648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-15648:
----------------------------------
Labels: pull-request-available (was: )
> 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
> Priority: Major
> Labels: pull-request-available
>
> 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: [email protected]
For additional commands, e-mail: [email protected]