Skip to content

Commit

Permalink
use the h2o remove all to remove keys instead of iterating thru store…
Browse files Browse the repository at this point in the history
…views on all nodes (unless a pattern is used)
  • Loading branch information
Kevin Normoyle committed Feb 1, 2014
1 parent cf2a03f commit 6a7e421
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions py/h2o_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,15 @@ def delete_keys(node=None, pattern=None, timeoutSecs=120):
# this is really the count that we attempted. Some could have failed.
return deletedCnt

# if pattern is used, don't use the heavy h2o method
def delete_keys_at_all_nodes(node=None, pattern=None, timeoutSecs=120):
# TEMP: change this to remove_all_keys which ignores locking and removes keys?
# getting problems when tests fail in multi-test-on-one-h2o-cluster runner*sh tests
if not node: node = h2o.nodes[0]
if not pattern:
node.remove_all_keys()
return 0 # don't have a count of keys?

totalDeletedCnt = 0
# do it in reverse order, since we always talk to 0 for other stuff
# this will be interesting if the others don't have a complete set
Expand Down

0 comments on commit 6a7e421

Please sign in to comment.