[ 
https://issues.apache.org/jira/browse/HDDS-10311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827322#comment-17827322
 ] 

Will Xiao commented on HDDS-10311:
----------------------------------

If we only startCluster once in @BeforeAll, are there any suggestions about 
this @ParameterizedTest, it requires startCluster in each run and changing the 
bucketLayout.

Is there any way to change the bucketLayout on the fly without restarting OM?
{code:java}
@ParameterizedTest
@EnumSource(value = BucketLayout.class, names = {"FILE_SYSTEM_OPTIMIZED", 
"LEGACY"})
public void testDirectoryOps(BucketLayout bucketLayout) throws Exception { 
...
startCluster();
...
}{code}

> Speed up TestOmMetrics
> ----------------------
>
>                 Key: HDDS-10311
>                 URL: https://issues.apache.org/jira/browse/HDDS-10311
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Will Xiao
>            Priority: Major
>
> {code}
> Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 115.365 s - 
> in org.apache.hadoop.ozone.om.TestOmMetrics
> {code}
> # assertions about metrics should be merged into functional tests (no need to 
> test e.g. {{listKeys}} and metrics for {{listKeys}} separately
> # no need to start new cluster for each test case



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to