Skip to content

HDDS-9805. Reduce cluster size in integration tests.#5706

Merged
szetszwo merged 1 commit intoapache:masterfrom
ArafatKhan2198:HDDS-9805
Dec 7, 2023
Merged

HDDS-9805. Reduce cluster size in integration tests.#5706
szetszwo merged 1 commit intoapache:masterfrom
ArafatKhan2198:HDDS-9805

Conversation

@ArafatKhan2198
Copy link
Contributor

@ArafatKhan2198 ArafatKhan2198 commented Nov 30, 2023

What changes were proposed in this pull request?

The following tests seem to create too many datanode and pipelines. We can change it to 5 datanodes and 3 pipelines. This will reduce the setup time and with fewer datanodes and pipelines, there's less likelihood of encountering resource contention and timing issues. Such issues can often lead to intermittent failures that are hard to reproduce and diagnose.

  1. TestOzoneClientRetriesOnExceptions.java
  2. TestBlockOutputStream.java
  3. TestCloseContainerHandlingByClient.java
  4. TestBlockOutputStreamFlushDelay.java
  5. TestBlockDataStreamOutput.java
  6. TestOzoneClientRetriesOnExceptionFlushDelay.java
  7. TestBlockOutputStreamWithFailures.java
  8. TestBlockOutputStreamWithFailuresFlushDelay.java
  9. TestOzoneFsHAURLs.java

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-9805

How was this patch tested?

All the tests ran successfully.
https://github.com/ArafatKhan2198/ozone/actions/runs/7045478194

@ArafatKhan2198
Copy link
Contributor Author

@adoroszlai

@kerneltime
Copy link
Contributor

@DaveTeng0 @tanvipenumudy

Copy link
Contributor

@tanvipenumudy tanvipenumudy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @ArafatKhan2198, the changes look good to me.

I think we can also reduce the cluster size for a few more tests under the package org.apache.hadoop.ozone.client.rpc as needed, such as:

  • TestWatchForCommit
  • TestOzoneAtRestEncryption
  • TestFailureHandlingByClientFlushDelay
  • TestFailureHandlingByClient

@DaveTeng0
Copy link
Contributor

thanks @ArafatKhan2198 for the change, and maybe update these following tests as well:

  • AbstractTestECKeyOutputStream.java
  • TestContainerStateMachineFailures.java
  • TestOzoneRpcClientAbstract
  • TestSecureOzoneRpcClient
  • TestECContainerRecovery
  • TestCloseContainerByPipeline

Thanks!

Copy link
Contributor

@szetszwo szetszwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 the change looks good.

Let's merge this first so that the tests can pass easier and run faster. We could work on the other tests separately.

@szetszwo szetszwo merged commit dd72e60 into apache:master Dec 7, 2023
@szetszwo
Copy link
Contributor

szetszwo commented Dec 7, 2023

@tanvipenumudy, @DaveTeng0 , thanks a lot for reviewing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants