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