From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 61BE4138A87 for ; Tue, 24 Feb 2015 03:19:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A6CFFE083C; Tue, 24 Feb 2015 03:19:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 557A4E083C for ; Tue, 24 Feb 2015 03:19:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C73434095C for ; Tue, 24 Feb 2015 03:19:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BE093126B5 for ; Tue, 24 Feb 2015 03:19:13 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1424747947.e55ce719ed5c077913d1e9e39b4982e6ed34b472.robbat2@gentoo> Subject: [gentoo-commits] proj/ag:master commit in: lib/ X-VCS-Repository: proj/ag X-VCS-Files: lib/storage.rb X-VCS-Directories: lib/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: e55ce719ed5c077913d1e9e39b4982e6ed34b472 X-VCS-Branch: master Date: Tue, 24 Feb 2015 03:19:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: c7e8e257-6f2b-4823-bd4d-b76611929092 X-Archives-Hash: d22d7d5e51bd8a734a06afaa3723e71d commit: e55ce719ed5c077913d1e9e39b4982e6ed34b472 Author: Robin H. Johnson gentoo org> AuthorDate: Tue Feb 24 03:19:07 2015 +0000 Commit: Robin H. Johnson gentoo 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 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