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 04F57200B6B for ; Fri, 26 Aug 2016 01:11:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 03546160ABD; Thu, 25 Aug 2016 23:11:22 +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 73F15160AA5 for ; Fri, 26 Aug 2016 01:11:21 +0200 (CEST) Received: (qmail 65056 invoked by uid 500); 25 Aug 2016 23:11:20 -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 65039 invoked by uid 99); 25 Aug 2016 23:11:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2016 23:11:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6C5332C0032 for ; Thu, 25 Aug 2016 23:11:20 +0000 (UTC) Date: Thu, 25 Aug 2016 23:11:20 +0000 (UTC) From: "Thomas D'Silva (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-3203) Tenant cache lookup in Global Cache fails in certain conditions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 25 Aug 2016 23:11:22 -0000 [ https://issues.apache.org/jira/browse/PHOENIX-3203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas D'Silva updated PHOENIX-3203: ------------------------------------ Attachment: PHOENIX-3203-v2.patch [~jamestaylor] Thanks for the review, I have attached an updated patch with api change. > Tenant cache lookup in Global Cache fails in certain conditions > --------------------------------------------------------------- > > Key: PHOENIX-3203 > URL: https://issues.apache.org/jira/browse/PHOENIX-3203 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.7.0 > Reporter: Thomas D'Silva > Assignee: Thomas D'Silva > Fix For: 4.9.0, 4.8.1 > > Attachments: PHOENIX-3203-v2.patch, PHOENIX-3203.patch > > > In ServerCachingEndpointImpl.addServerCache we look up the tenant cache using an ImmutableBytesPtr instead of ImmutableBytesWritable > {code} > ImmutableBytesPtr tenantId = null; > if (request.hasTenantId()) { > tenantId = new ImmutableBytesPtr(request.getTenantId().toByteArray()); > } > TenantCache tenantCache = GlobalCache.getTenantCache(this.env, tenantId); > {code} > this causes the TenantCache to not be found when we look it up later using an ImmutableBytesWritable. -- This message was sent by Atlassian JIRA (v6.3.4#6332)