[
https://issues.apache.org/jira/browse/HDDS-17883?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai resolved HDDS-17883.
-------------------------------------
Fix Version/s: 2.3.0
Resolution: Implemented
> Speed up client tests waiting for Ratis write request timeout
> -------------------------------------------------------------
>
> Key: HDDS-17883
> URL: https://issues.apache.org/jira/browse/HDDS-17883
> Project: Apache Ozone
> Issue Type: Improvement
> Components: test
> Reporter: Chi-Hsuan Huang
> Assignee: Chi-Hsuan Huang
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.3.0
>
>
> Since HDDS-3350, {{TestBlockOutputStream}} (also used by
> {{TestBlockOutputStreamWithFailures}}), {{TestFailureHandlingByClient}} and
> {{TestMultiBlockWritesWithDnFailures}} set the Ratis client write request
> timeout to 30s.
> When a test stops a datanode, the client keeps retrying the write on the old
> pipeline until this timeout expires, then excludes it and moves on. Each such
> wait takes 30-34 seconds. For example, {{testDatanodeFailureWithSingleNode}}
> and {{testDatanodeFailureWithPreAllocation}} in
> {{TestBlockOutputStreamWithFailures}} take about 37-40s per run, mostly spent
> in this wait.
> Local run time with different values:
> || ||30s||10s||8s||5s||3s||
> |TestBlockOutputStreamWithFailures|480s|300s|287s|255s|227s, 2 failures|
> |TestFailureHandlingByClient|168s|108s|89s|78s, 2 failures|91s|
> At 5s and below, the client gives up before the expected failure handling
> happens, so some assertions fail.
> CI flaky-test-check, 100 iterations each:
> || ||30s||10s||
> |TestBlockOutputStreamWithFailures|0 failures, avg 482s|0 failures, avg 310s|
> |TestFailureHandlingByClient|7 failures, avg 193s|7 failures, avg 113s|
> All {{TestFailureHandlingByClient}} failures are in
> {{testDatanodeExclusionWithMajorityCommit}} (HDDS-13972), with both values.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]