You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "István Fajth (Jira)" <ji...@apache.org> on 2022/01/24 17:54:00 UTC
[jira] [Created] (HDDS-6222) Re-work TestContainerMapper test to use the RATIS replication type
István Fajth created HDDS-6222:
----------------------------------
Summary: Re-work TestContainerMapper test to use the RATIS replication type
Key: HDDS-6222
URL: https://issues.apache.org/jira/browse/HDDS-6222
Project: Apache Ozone
Issue Type: Bug
Components: test
Reporter: István Fajth
Assignee: István Fajth
Currently TestContainerMapper test is doing the following:
- using the STAND_ALONE replication type it writes 20 keys with 100MB size
- asserts if there are 3 containers in the OM DB for the keys
If we switch to the RATIS client, then we see the following problem:
- we have more than the single pipeline that will be created for the STAND_ALONE write, as background pipeline creator creates RATIS/ONE pipelines on every datanode.
- we have multiple containers created for a pipeline in a Datanode when using RATIS depending on properties
- we select pipeline at random, and we can not guarantee that writes will be distributed evenly, therefore we can not assert the exact number of containers created
- there is a slight chance for flakyness.
Either the configuration has to restrict the creation of containers to a predictable value, or we need to change the test to write data the test requires into the OM DB via OM facilities, so that we can make sure that after every change in that logic the test validates if the ContainerMapper can read the data.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org