[ https://issues.apache.org/jira/browse/HDFS-13245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16478719#comment-16478719 ]
Yiran Wu edited comment on HDFS-13245 at 5/17/18 8:20 AM: ---------------------------------------------------------- Hi, [~giovanni.fumarola] . Thanks for code review. The h2database used by the unit test, I use it to test MySQL and MSSQLServer. It can emulate MySQL and MSSQLServer in memory mode. Mainly used in the following two unit tests, use special connection strings to simulate different databases. *TestStateStoreMSSQLServer.java* {code:java} // TestStateStoreMSSQLServer.class String driver = "org.h2.jdbcx.JdbcDataSource"; String databaseUrl = "jdbc:h2:mem:db1;MODE=MSSQLServer;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"; {code} *TestStateStoreMySQL.java* {code:java} //TestStateStoreMySQL.class String driver = "org.h2.jdbcx.JdbcDataSource"; String databaseUrl = "jdbc:h2:mem:db1;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"; {code} was (Author: yiran): Hi, [~giovanni.fumarola] . Thanks for code review. The h2database used by the unit test, I use it to test MySQL and MSSQLServer. It can emulate MySQL and MSSQLServer in memory mode. Mainly used in the following two unit tests, use special connection strings to simulate different databases. *TestStateStoreMSSQLServer.java* {code:java} // TestStateStoreMSSQLServer.class String driver = "org.h2.jdbcx.JdbcDataSource"; String databaseUrl = "jdbc:h2:mem:db1;MODE=MSSQLServer;" + "DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"; {code} *TestStateStoreMySQL.java* {code:java} //TestStateStoreMySQL.class String driver = "org.h2.jdbcx.JdbcDataSource"; String databaseUrl = "jdbc:h2:mem:db1;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE"; {code} > RBF: State store DBMS implementation > ------------------------------------ > > Key: HDFS-13245 > URL: https://issues.apache.org/jira/browse/HDFS-13245 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: hdfs > Reporter: maobaolong > Assignee: Yiran Wu > Priority: Major > Attachments: HDFS-13245.001.patch, HDFS-13245.002.patch, > HDFS-13245.003.patch, HDFS-13245.004.patch, HDFS-13245.005.patch, > HDFS-13245.006.patch, HDFS-13245.007.patch, HDFS-13245.008.patch, > HDFS-13245.009.patch, HDFS-13245.010.patch, HDFS-13245.011.patch, > HDFS-13245.012.patch > > > Add a DBMS implementation for the State Store. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org