Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5C1E2200CFA for ; Tue, 5 Sep 2017 18:42:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5AA541609EF; Tue, 5 Sep 2017 16:42:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A12FD1609E0 for ; Tue, 5 Sep 2017 18:42:09 +0200 (CEST) Received: (qmail 65545 invoked by uid 500); 5 Sep 2017 16:42:08 -0000 Mailing-List: contact dev-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 dev@phoenix.apache.org Received: (qmail 65520 invoked by uid 99); 5 Sep 2017 16:42:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2017 16:42:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 4BB151827EB for ; Tue, 5 Sep 2017 16:42:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 3tZqArbfShxV for ; Tue, 5 Sep 2017 16:42:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 8730B61273 for ; Tue, 5 Sep 2017 16:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E2206E0EAC for ; Tue, 5 Sep 2017 16:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 481F724157 for ; Tue, 5 Sep 2017 16:42:00 +0000 (UTC) Date: Tue, 5 Sep 2017 16:42:00 +0000 (UTC) From: "James Taylor (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (PHOENIX-4156) Fix flapping MutableIndexFailureIT MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 05 Sep 2017 16:42:10 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-4156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16153944#comment-16153944 ] James Taylor edited comment on PHOENIX-4156 at 9/5/17 4:41 PM: --------------------------------------------------------------- bq. I wanted to disable the scheduled thread so the test can execute the rebuild task itself and assert the state of indexes. I don't think we can do that by setting the "do not rebuild" index policy on the table. I see. That seems fine then. Why not a default for the delay of 0? So in other words, just have a new QueryServicesOptions.DEFAULT_INDEX_REBUILD_TASK_INITIAL_DELAY with a value of 0. {code} + initialRebuildTaskDelay = + config.getLong( + QueryServices.INDEX_REBUILD_TASK_INITIAL_DELAY, + QueryServicesOptions.DEFAULT_INDEX_FAILURE_HANDLING_REBUILD_INTERVAL); {code} bq. when the disableIndexOnWriteFailure=false and rebuildIndexOnFailure=false, we are relying on the users to replay the mutations, right? So in this case the index disable timestamp shouldn't be set? Correct. was (Author: jamestaylor): bq. I wanted to disable the scheduled thread so the test can execute the rebuild task itself and assert the state of indexes. I don't think we can do that by setting the "do not rebuild" index policy on the table. I see. That seems fine then. Why not a default for the delay of 0? bq. when the disableIndexOnWriteFailure=false and rebuildIndexOnFailure=false, we are relying on the users to replay the mutations, right? So in this case the index disable timestamp shouldn't be set? Correct. > Fix flapping MutableIndexFailureIT > ---------------------------------- > > Key: PHOENIX-4156 > URL: https://issues.apache.org/jira/browse/PHOENIX-4156 > Project: Phoenix > Issue Type: Bug > Reporter: Samarth Jain > Assignee: Samarth Jain > Attachments: PHOENIX-4156_v1.patch, PHOENIX-4156_v2.patch, PHOENIX-4156_v3.patch, PHOENIX-4156_v4.patch > > -- This message was sent by Atlassian JIRA (v6.4.14#64029)