From issues-return-7163-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue May 28 17:18:39 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 74B6D18060F for ; Tue, 28 May 2019 19:18:39 +0200 (CEST) Received: (qmail 83895 invoked by uid 500); 28 May 2019 17:18:38 -0000 Mailing-List: contact issues-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list issues@phoenix.apache.org Received: (qmail 83886 invoked by uid 99); 28 May 2019 17:18:38 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 May 2019 17:18:38 +0000 From: GitBox To: issues@phoenix.apache.org Subject: [GitHub] [phoenix] gokceni commented on a change in pull request #499: Phoenix-5272 ALTER INDEX REBUILD ALL Message-ID: <155906391811.11244.9142426523206339975.gitbox@gitbox.apache.org> Date: Tue, 28 May 2019 17:18:38 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit gokceni commented on a change in pull request #499: Phoenix-5272 ALTER INDEX REBUILD ALL URL: https://github.com/apache/phoenix/pull/499#discussion_r288213881 ########## File path: phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java ########## @@ -934,7 +936,35 @@ public IndexStateCheck(PIndexState indexState, Long indexDisableTimestamp, Boole this.success = success; } } - + + public static void waitForIndexState(Connection conn, String fullIndexName, PIndexState expectedIndexState) throws InterruptedException, SQLException { + int maxTries = 60; + RetryCounter retrier = new RetryCounter(maxTries, Review comment: @swaroopak asked me to change the wait code to depend on it. Will role back. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services