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-11952) Ozone: Fix regression TestContainerSQLCli#testConvertContainerDB
Date Thu, 08 Jun 2017 14:01:18 GMT

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

Weiwei Yang commented on HDFS-11952:
------------------------------------

This regression seems to be caused by the changes to {{ContainerMapping.java}} from HDFS-11568


{code}
String scmMetaDataDir = metaDir.getParent();
File containerDBPath = new File(scmMetaDataDir, CONTAINER_DB);
{code}

this will set container DB dir to the same level dir with scm metadata dir, instead of its
child dir. Uploaded a patch to fix.


> Ozone: Fix regression TestContainerSQLCli#testConvertContainerDB
> ----------------------------------------------------------------
>
>                 Key: HDFS-11952
>                 URL: https://issues.apache.org/jira/browse/HDFS-11952
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>            Reporter: Weiwei Yang
>            Assignee: Weiwei Yang
>         Attachments: HDFS-11952-HDFS-7240.001.patch
>
>
> TestContainerSQLCli#testConvertContainerDB is failing since HDFS-11568. Error message:
> {noformat}
> 2017-06-08 08:21:47,653 [main] ERROR      - DB path not exist:/testptch/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/test/data/4/MiniOzoneCluster1113d40f-586f-4914-9ac4-a37c1a3a561d/05bdadbc-1e60-46e0-bf57-efc4f21f2e7e/scm/container.db
> ...
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.ozone.scm.TestContainerSQLCli.testConvertContainerDB(TestContainerSQLCli.java:255)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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