Skip to content
This repository has been archived by the owner on Jun 6, 2018. It is now read-only.

Commit

Permalink
[vitess]Change commit from async to sync
Browse files Browse the repository at this point in the history
In applyMutation, tx.commit(ctx) is async and doesn't wait for it. Add checkedGet to it.
  • Loading branch information
smallsmallc committed May 27, 2016
1 parent a57d914 commit 4ac984a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vitess/src/main/java/com/yahoo/ycsb/db/VitessClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ private Status applyMutation(QueryCreator.Query query) {
tx.executeKeyspaceIds(
ctx, query.getQuery(), query.getKeyspace(), query.getKeyspaceId(),
query.getBindVars(), query.getTabletType()).checkedGet();
tx.commit(ctx);
tx.commit(ctx).checkedGet();
}
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 4ac984a

Please sign in to comment.