Skip to content
Browse files

Added HBase cleanup code fix. closes #3

  • Loading branch information...
1 parent 537c022 commit ab55f7aa494a44cfe6f323e9086bc3cd87f40d97 aesilberstein committed
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/com/yahoo/ycsb/db/HBaseClient.java
View
8 src/com/yahoo/ycsb/db/HBaseClient.java
@@ -83,7 +83,13 @@ public void init() throws DBException
*/
public void cleanup() throws DBException
{
-
+ try {
+ if (_hTable != null) {
+ _hTable.flushCommits();
+ }
+ } catch (IOException e) {
+ throw new DBException(e);
+ }
}
public void getHTable(String table) throws IOException

0 comments on commit ab55f7a

Please sign in to comment.
Something went wrong with that request. Please try again.