You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@s2graph.apache.org by "DOYUNG YOON (JIRA)" <ji...@apache.org> on 2016/11/02 06:30:59 UTC

[jira] [Updated] (S2GRAPH-101) Change metastore file location from project to `/tmp`

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

DOYUNG YOON updated S2GRAPH-101:
--------------------------------
    Fix Version/s:     (was: 0.1.0)
                   0.2.0

> Change metastore file location from project to `/tmp`
> -----------------------------------------------------
>
>                 Key: S2GRAPH-101
>                 URL: https://issues.apache.org/jira/browse/S2GRAPH-101
>             Project: S2Graph
>          Issue Type: Sub-task
>    Affects Versions: 0.1.0
>            Reporter: DOYUNG YOON
>            Assignee: DOYUNG YOON
>            Priority: Minor
>             Fix For: 0.2.0
>
>
> After S2GRAPH-93, we use H2 as default metastore and test cases store metastore on ./var directory.  
> If I run `sbt test` then remove ./var directory then run `sbt test` again, then H2 metastore start their sequence from 1 again. 
> This is problematic since we are not actually delete data in HBase, but only deleting meta(`Label`, `Service` etc).
> Deleting `./var` directory affect same `Label` id, which comes from auto increment on H2, and This make current test run conflict with previous test run. 
> To correct this, It would be better to drop data after each test cases finished on HBase, but that needs lots of changes on all test cases. 
> Following is options we can choose(please suggest better way).
> # manually truncate hbase tables before run `sbt test`.
> # relocate meta store directory for H2 from `./var` to `/tmp` so we don't have to rm `./var` directory when switch branches. 
> Please any feedback



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)