commit: e55ce719ed5c077913d1e9e39b4982e6ed34b472
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 24 03:19:07 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb 24 03:19:07 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=e55ce719
more print.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
lib/storage.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/storage.rb b/lib/storage.rb
index 6e41ed7..8828bf6 100644
--- a/lib/storage.rb
+++ b/lib/storage.rb
@@ -89,8 +89,8 @@ module Ag::Storage
})
# Give elasticsearch some time to process the new index
+ status = $es.indices.status(index: indexname)
while $es.cluster.health['status'] != 'green' do
- status = $es.indices.status(index: indexname)
pp status
pp status['indices'][indexname]['shards']
status = status['indices'][indexname]['shards'].map do |k,v|
@@ -98,6 +98,7 @@ module Ag::Storage
end
pp status
sleep 0.01
+ status = $es.indices.status(index: indexname)
end
pp $es.indices.status(index: indexname)
end