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

Uma Maheswara Rao G updated HDDS-3380:
--------------------------------------
    Priority: Minor  (was: Major)

> MiniOzoneHAClusterImpl#initOMRatisConf will reset the configs and causes for 
> test failures
> ------------------------------------------------------------------------------------------
>
>                 Key: HDDS-3380
>                 URL: https://issues.apache.org/jira/browse/HDDS-3380
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: HA, test
>    Affects Versions: 0.5.0
>            Reporter: Uma Maheswara Rao G
>            Priority: Minor
>             Fix For: 0.6.0
>
>
> While I was debugging some code paths using miniOzoneCluster:
> For example in TestOzoneHAManager:
> it plans to trigger snapshots at threshold 50 and same was configured and 
> passed to MiniOzoneHACluster. But inside 
> MiniOzoneHAClusterImpl#initOMRatisConf, it will silently reset to 100L. So, 
> test will expect snapshot to trigger after 50 transactions, but it will not.
>  
> It will keep wait even after rolling at 50:
> {quote}GenericTestUtils.waitFor(() -> {
>  if (ozoneManager.getRatisSnapshotIndex() > 0) {
>  return true;
>  }
>  return false;
> }, 1000, 100000);
> {quote}
>  
> {quote}2020-04-12 03:54:21,296 
> [omNode-1@group-523986131536-SegmentedRaftLogWorker] INFO 
> segmented.SegmentedRaftLogWorker (SegmentedRaftLogWorker.java:execute(583)) - 
> omNode-1@group-523986131536-SegmentedRaftLogWorker: created new log segment 
> /Users/ugangumalla/Work/repos/hadoop-ozone/hadoop-ozone/integration-test/target/test-dir/MiniOzoneClusterImpl-fce544cd-3a80-4b0b-ac92-463cf391975c/omNode-1/ratis/c9bc4cf4-3bc3-3c60-a66b-523986131536/current/log_inprogress_49
> {quote}
>  
> So, respecting user passed configurations will fix the issue. I will post the 
> patch later in some time.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to