You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2024/03/06 23:13:00 UTC

[jira] [Updated] (HDDS-10482) HDDS-10226 didn't set mod time for OMRequestTestUtils.createOmKeyInfo

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

Siyao Meng updated HDDS-10482:
------------------------------
    Description: 
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}
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.

  was:
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}
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}


> HDDS-10226 didn't set mod time for OMRequestTestUtils.createOmKeyInfo
> ---------------------------------------------------------------------
>
>                 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
>
> 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}
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org