Siyao Meng created HDDS-16933:
---------------------------------
Summary: Speed up TestKeyValueContainer, TestEventBufferOverflow,
TestBlockInputStream and TestEventQueue
Key: HDDS-16933
URL: https://issues.apache.org/jira/browse/HDDS-16933
Project: Apache Ozone
Issue Type: Improvement
Components: test
Reporter: Siyao Meng
Assignee: Siyao Meng
These unit tests spend most of their time on waits or test data that no
assertion depends on:
* {{TestKeyValueContainer#testAutoCompactionSmallSstFile}} creates 400
containers with 500 keys each and then sleeps 7s. Since HDDS-12233 container
import no longer generates SST files, so the test only asserts that none exist.
* {{TestEventBufferOverflow}} sleeps 2.1s between retry attempts.
{{TestReconTaskControllerImpl}} already advances a {{MockClock}} past the same
retry delay instead.
* {{TestBlockInputStream}} waits the default 1s
{{ozone.client.read.retry.interval}} before each retry.
* {{TestEventQueue}} uses a handler that sleeps 2s for each of 11 events, which
are processed by a single thread.
Together they take about 140s in CI and can run in about 55s.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]