You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Rakesh Radhakrishnan (Jira)" <ji...@apache.org> on 2021/01/18 08:43:00 UTC

[jira] [Commented] (HDDS-4717) Fix TestOzoneFileSystemV1 and TestObjectStoreV1 cases

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

Rakesh Radhakrishnan commented on HDDS-4717:
--------------------------------------------

Based on the analysis, following are the findings:

*1)* there was a bug in the feature branch when ratis enabled and it was disabled earlier.  Now, HDDS-4498 has enabled OM ratis by default and that causes these test failures. TableIterator will not have the updated keys and can expect to have stale/false entries. {{iterator.seek}} operations should always consider TableCache values also.

During Put ops: key entry will be added to TableCache and then async flush it to DB.

During delete ops: a null key entry will be to TableCache and then async flush it to DB.

 

*2)* DeleteRequest was wrongly updating the keyName, if the key is a file type.

> Fix TestOzoneFileSystemV1 and TestObjectStoreV1 cases
> -----------------------------------------------------
>
>                 Key: HDDS-4717
>                 URL: https://issues.apache.org/jira/browse/HDDS-4717
>             Project: Hadoop Distributed Data Store
>          Issue Type: Sub-task
>            Reporter: Rakesh Radhakrishnan
>            Assignee: Rakesh Radhakrishnan
>            Priority: Major
>
> Following test cases are failing.
>  
> {code:java}
> Error:  Failures: 
> Error:    TestObjectStoreV1.testCreateKey:143->verifyKeyInFileTable:374 Invalid Key: -9223372036854774526/file1 expected:<-922337203685477[0429/key01695]> but was:<-922337203685477[4526/file1]>
> Error:    TestObjectStoreV1.testLookupKey:212->verifyKeyInFileTable:374 Invalid Key: -9223372036854770429/key01695 expected:<-92233720368547[68381/key05336]> but was:<-92233720368547[70429/key01695]>
> {code}
> {code:java}
> Error:  testFileSystem[3](org.apache.hadoop.fs.ozone.TestOzoneFileSystemV1)  Time elapsed: 28.327 s  <<< FAILURE!
> java.lang.AssertionError: Delete root failed! expected:<0> but was:<1>
> {code}
> [Reference-TestObjectStoreV1|https://github.com/apache/ozone/pull/1811/checks?check_run_id=1716517031]
>  [Reference-TestOzoneFileSystemV1|https://github.com/apache/ozone/pull/1811/checks?check_run_id=1716517021]



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

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