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-11550) Ozone: Add a check to prevent removing a container that has keys in it
Date Wed, 22 Mar 2017 12:47:41 GMT

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

Weiwei Yang commented on HDFS-11550:

Hi [~anu]

When I work on this one, I feel the current implementation of accessing container leveldb
store is not flexible. LevelDB only allows a single process to access database at a time,
so if I want to check the data in the db, I have to get the instance of this levelD.  However
that instance is maintained in a cache in {{KeyManagerImpl}}, this makes it hard to access
from outside. 

I am thinking to move the cache out, get something like {{LevelDBFactory.getInstance(File
dbpath)}} or {{LevelDBFactory.getInstance(String containerName)}} to retrieve the instance
of the database by database path, this way other places would easy obtain an instance and
access the db store. Does that make sense to you? 

> Ozone: Add a check to prevent removing a container that has keys in it
> ----------------------------------------------------------------------
>                 Key: HDFS-11550
>                 URL: https://issues.apache.org/jira/browse/HDFS-11550
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
> The Storage Container remove call must check if there are keys in the container before
removing itself. if not it should return an error, ERROR_CONTAINER_NOT_EMPTY.

This message was sent by Atlassian JIRA

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

View raw message