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

DOYUNG YOON updated S2GRAPH-101:
--------------------------------
    Description: 
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


  was:
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. 

I guess another option would be manually truncate hbase tables before run `sbt 
test`. 

Personally I am suggesting to 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 or suggest better idea.



> 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
>             Fix For: 0.1.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)

Reply via email to