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 97727200D08 for ; Thu, 7 Sep 2017 06:50:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9603D1611C4; Thu, 7 Sep 2017 04:50:05 +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 DD33B1611BF for ; Thu, 7 Sep 2017 06:50:04 +0200 (CEST) Received: (qmail 51832 invoked by uid 500); 7 Sep 2017 04:50:03 -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 51817 invoked by uid 99); 7 Sep 2017 04:50:03 -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; Thu, 07 Sep 2017 04:50:03 +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 3E91618BCBA for ; Thu, 7 Sep 2017 04:50:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[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 HTcpfleq3nTi for ; Thu, 7 Sep 2017 04:50: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 430385FD33 for ; Thu, 7 Sep 2017 04:50:02 +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 4AB99E0E66 for ; Thu, 7 Sep 2017 04:50:01 +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 5CC3824157 for ; Thu, 7 Sep 2017 04:50:00 +0000 (UTC) Date: Thu, 7 Sep 2017 04:50:00 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4165) Do not wait no new memory chunk can be allocated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Sep 2017 04:50:05 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-4165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated PHOENIX-4165: ----------------------------------- Attachment: 4165-v3.txt -v3 includes a test: 100 threads allocate chunk of memory in memory, until each of them fails an allocation. Make sure that all memory is used. Then all threads free their allocated chunks, make sure everything was released - I can't think of anything better to test. This should be good to go. > Do not wait no new memory chunk can be allocated > ------------------------------------------------ > > Key: PHOENIX-4165 > URL: https://issues.apache.org/jira/browse/PHOENIX-4165 > Project: Phoenix > Issue Type: Bug > Reporter: Lars Hofhansl > Attachments: 4165.txt, 4165-v2.txt, 4165-v3.txt > > > Currently the code waits for up to 10s by fault for memory to become "available". > I think it's better to fail immediately and the let the client retry rather than waiting on an HBase handler thread. > In a first iteration we can simply set the max wait time to 0 (or perhaps even -1) so that we do not attempt to wait but fail immediately. All using code should already deal with InsufficientMemoryExceptions, since they can already happen right now, > In a second step I'd suggest to actually remove the waiting code and config option completely. > [~jamestaylor] -- This message was sent by Atlassian JIRA (v6.4.14#64029)