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

Attila Doroszlai updated HDDS-10482:
------------------------------------
    Summary: OMRequestTestUtils.createOmKeyInfo should set key modification 
time  (was: HDDS-10226 should set mod time for 
OMRequestTestUtils.createOmKeyInfo)

> OMRequestTestUtils.createOmKeyInfo should set key modification time
> -------------------------------------------------------------------
>
>                 Key: HDDS-10482
>                 URL: https://issues.apache.org/jira/browse/HDDS-10482
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Siyao Meng
>            Assignee: Siyao Meng
>            Priority: Major
>              Labels: pull-request-available
>
> HDDS-10226 refactoring forgot to set modification time for 
> {{OMRequestTestUtils.createOmKeyInfo}}. This causes one test (regarding lease 
> recovery on the feature branch) to fail:
> {code:title=https://github.com/smengcl/hadoop-ozone/actions/runs/8177809313/job/22360673253#step:5:2620}
> Error:  Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 
> 7.981 s <<< FAILURE! - in 
> org.apache.hadoop.ozone.om.request.file.TestOMRecoverLeaseRequest
> Error:  
> org.apache.hadoop.ozone.om.request.file.TestOMRecoverLeaseRequest.testLeaseSoftLimitForHsyncRecoverFile(boolean)[2]
>   Time elapsed: 0.215 s  <<< FAILURE!
> org.opentest4j.AssertionFailedError: expected: 
> <KEY_UNDER_LEASE_SOFT_LIMIT_PERIOD> but was: <OK>
>       at 
> org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
>       at 
> org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
>       at 
> org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
>       at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:182)
>       at 
> org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:177)
>       at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:1145)
>       at 
> org.apache.hadoop.ozone.om.request.file.TestOMRecoverLeaseRequest.testLeaseSoftLimitForHsyncRecoverFile(TestOMRecoverLeaseRequest.java:325)
> {code}
> Since this counts as a regression on the *master* branch. This would target 
> master branch rather than the feature branch that has the test failure.



--
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