You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2025/02/06 01:55:00 UTC

[jira] [Resolved] (HDDS-12159) Remove unnecessary iterator seek in fileTable and DirectoryTable uses

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

Wei-Chiu Chuang resolved HDDS-12159.
------------------------------------
    Fix Version/s: 2.0.0
       Resolution: Fixed

> Remove unnecessary iterator seek in fileTable and DirectoryTable uses
> ---------------------------------------------------------------------
>
>                 Key: HDDS-12159
>                 URL: https://issues.apache.org/jira/browse/HDDS-12159
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Tejaskriya Madhan
>            Assignee: Tejaskriya Madhan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>
> In `org.apache.hadoop.ozone.om.request.file.OMFileRequest#checkSubFileExists`, an iterator is created for the fileTable. During this, a seek to the first record takes place internally. Following which a seek to a prefix is done in the method. RocksDB provides iterator(prefix) method to directly create and seek together. This would be more efficient



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