Permalink
Browse files

shutdown request

  • Loading branch information...
gegao committed Nov 17, 2013
1 parent caec9fa commit 5389c27807aabb0db5c2f0bfc9b8c99bec8aad7d
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/frontend/edu/brown/hstore/HStoreJVMSnapshotManager.java
@@ -377,15 +377,26 @@ public void stopSnapshot() {
LOG.debug("HStoreJVMSnapshot shutdown!");
if (!isParent || snapshot_pid == 0)
return;
ByteString bs = ByteString.EMPTY;
TransactionRequest tr = TransactionRequest.newBuilder().setRequest(bs)
.build();
JVMSnapshotTransactionCallback callback = new JVMSnapshotTransactionCallback(
hstore_site, null);
channel.execTransactionRequest(new ProtoRpcController(), tr, callback);
if (debug.val)
LOG.debug("Send finish;");
/*
try {
Runtime.getRuntime().exec("kill -9 "+this.snapshot_pid);
} catch (IOException e) {
e.printStackTrace();
}
*/
//ProcessUtils.kill(this.snapshot_pid);
if (listener_thread != null && listener_thread.isAlive()) {
eventLoop.exitLoop();
}
this.snapshot_pid = 0;
}

0 comments on commit 5389c27

Please sign in to comment.