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: [email protected]
For additional commands, e-mail: [email protected]