hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Weiwei Yang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-12069) Ozone: Create a general abstraction for metadata store
Date Tue, 11 Jul 2017 07:12:02 GMT

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

Weiwei Yang commented on HDFS-12069:
------------------------------------

Hi [~yuanbo]

bq. It seems we can refactor some code if Consumer#accept has a boolean return, then we can
use it like...

I was using standard java Consumer interface which has no return value, but I agree you are
making a good point. So instead of using that interface, I created a new one

{code}
public interface EntryConsumer {
  boolean consume(byte[] key, byte[] value) throws IOException;
}
{code}

this makes code more readable and flexible. Thanks for the suggestion! I have updated to v10
patch, please take a look if that makes sense to you.

Thank you.

> Ozone: Create a general abstraction for metadata store
> ------------------------------------------------------
>
>                 Key: HDFS-12069
>                 URL: https://issues.apache.org/jira/browse/HDFS-12069
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>         Attachments: HDFS-12069-HDFS-7240.001.patch, HDFS-12069-HDFS-7240.002.patch,
HDFS-12069-HDFS-7240.003.patch, HDFS-12069-HDFS-7240.004.patch, HDFS-12069-HDFS-7240.005.patch,
HDFS-12069-HDFS-7240.006.patch, HDFS-12069-HDFS-7240.007.patch, HDFS-12069-HDFS-7240.008.patch,
HDFS-12069-HDFS-7240.009.patch
>
>
> Create a general abstraction for metadata store so that we can plug other key value store
to host ozone metadata. Currently only levelDB is implemented, we want to support RocksDB
as it provides more production ready features.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message