Skip to content

Commit

Permalink
Added HBase cleanup code fix. closes brianfrankcooper#3
Browse files Browse the repository at this point in the history
  • Loading branch information
aesilberstein committed Apr 25, 2010
1 parent 537c022 commit ab55f7a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/com/yahoo/ycsb/db/HBaseClient.java
Expand Up @@ -83,7 +83,13 @@ public void init() throws DBException
*/ */
public void cleanup() 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 public void getHTable(String table) throws IOException
Expand Down

0 comments on commit ab55f7a

Please sign in to comment.