aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-02-23 19:02:16 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2015-02-23 19:02:16 -0800
commitbd0a53c8bc9a1bb86908e15c1c0310593a09c14a (patch)
tree348a7ea08ee3e2a5311bca1c029d67ff19bcaa56
parentFun to trigger race bugs. (diff)
downloadbackend-bd0a53c8bc9a1bb86908e15c1c0310593a09c14a.tar.gz
backend-bd0a53c8bc9a1bb86908e15c1c0310593a09c14a.tar.bz2
backend-bd0a53c8bc9a1bb86908e15c1c0310593a09c14a.zip
Work on getting state.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-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