aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/storage.rb')
-rw-r--r--lib/storage.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/storage.rb b/lib/storage.rb
index f47c6bc..081e206 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -89,7 +89,10 @@ module Ag::Storage
})
# Give elasticsearch some time to process the new index
- pp $es.indices.status(index: indexname)
+ status = $es.indices.status(index: indexname)
+ pp status['indices'][indexname]['shares'].map do |k,v|
+ v['routing']['state']
+ end
while $es.cluster.health['status'] != 'green' do
pp $es.indices.status(index: indexname)
sleep 0.01