From issues-return-6631-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue May 7 04:52:05 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 D558018060F for ; Tue, 7 May 2019 06:52:04 +0200 (CEST) Received: (qmail 76221 invoked by uid 500); 7 May 2019 04:52:04 -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 76212 invoked by uid 99); 7 May 2019 04:52:04 -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, 07 May 2019 04:52:04 +0000 From: GitBox To: issues@phoenix.apache.org Subject: [GitHub] [phoenix] swaroopak commented on a change in pull request #499: Phoenix 4703 ALTER INDEX REBUILD ALL Message-ID: <155720472421.7948.11590402447939987000.gitbox@gitbox.apache.org> Date: Tue, 07 May 2019 04:52:04 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit swaroopak commented on a change in pull request #499: Phoenix 4703 ALTER INDEX REBUILD ALL URL: https://github.com/apache/phoenix/pull/499#discussion_r281460096 ########## File path: phoenix-core/src/it/java/org/apache/phoenix/end2end/index/IndexMetadataIT.java ########## @@ -610,7 +613,84 @@ public void testAsyncRebuildTimestamp() throws Exception { "order by table_name" ); assertFalse(rs.next()); } - + + @Test + public void testAsyncRebuildAll() throws Exception { + Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES); + Connection conn = DriverManager.getConnection(getUrl(), props); Review comment: I would suggest using try-with-resources for connection and prepareStatement objects. ---------------------------------------------------------------- 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