Skip to content

Commit

Permalink
Try shutdown of individual nodes to get around hanging RiakClient#shu…
Browse files Browse the repository at this point in the history
  • Loading branch information
dv authored and dv committed Sep 18, 2017
1 parent c6d34de commit f72bd90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/org/commonvox/bigdatademos/RiakTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ public static void main(String [] args) throws UnknownHostException {
System.out.println("Shutting down client!");
// NOTE: #shutdown may hang indefinitely:
// https://github.com/basho/riak-java-client/issues/706
myNodeClient.shutdown();
// myNodeClient.shutdown();
for (RiakNode node : riakNodes) {
System.out.println("Shutting down NODE: " + node.getRemoteAddress());
node.shutdown();
}


}
}

0 comments on commit f72bd90

Please sign in to comment.