[ 
https://issues.apache.org/jira/browse/HDDS-5758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen O'Donnell updated HDDS-5758:
------------------------------------
    Description: 
TestKeyInputStream takes over 900 seconds to run:

[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 964.773 
s - in org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream
[INFO] Running org.apache.hadoop.ozone.client.rpc.Test2WayCommitInRatis

TestChunkInputStream also takes about:

[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 292.226 
s - in org.apache.hadoop.ozone.client.rpc.read.TestChunkInputStream
[INFO] Running org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream

Some of the tests stop and start nodes in the mini-cluster, so its hard to use 
the same cluster for all tests, but we can combine the "non-destructive" tests 
into a single test method in each of these class easily saving significant time.

Also in TestInputStreamBase there is a single test, which is executed by both 
the extending classes, needless repeating it. I have moved in up into one of 
the extending classes instead.

  was:
TestKeyInputStream takes over 900 seconds to run:

```
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 964.773 
s - in org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream
[INFO] Running org.apache.hadoop.ozone.client.rpc.Test2WayCommitInRatis
```

Some of the tests stop and start nodes in the mini-cluster, so its hard to use 
the same cluster for all tests, but we can combine the "non-destructive" tests 
into a single test method easily saving significant time.


> Speed up TestKeyInputStream by combining some tests
> ---------------------------------------------------
>
>                 Key: HDDS-5758
>                 URL: https://issues.apache.org/jira/browse/HDDS-5758
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: test
>    Affects Versions: 1.2.0
>            Reporter: Stephen O'Donnell
>            Assignee: Stephen O'Donnell
>            Priority: Major
>              Labels: pull-request-available
>
> TestKeyInputStream takes over 900 seconds to run:
> [INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 964.773 s - in org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream
> [INFO] Running org.apache.hadoop.ozone.client.rpc.Test2WayCommitInRatis
> TestChunkInputStream also takes about:
> [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
> 292.226 s - in org.apache.hadoop.ozone.client.rpc.read.TestChunkInputStream
> [INFO] Running org.apache.hadoop.ozone.client.rpc.read.TestKeyInputStream
> Some of the tests stop and start nodes in the mini-cluster, so its hard to 
> use the same cluster for all tests, but we can combine the "non-destructive" 
> tests into a single test method in each of these class easily saving 
> significant time.
> Also in TestInputStreamBase there is a single test, which is executed by both 
> the extending classes, needless repeating it. I have moved in up into one of 
> the extending classes instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to