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 10F8B200B4B for ; Thu, 21 Jul 2016 20:52:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0C90B160A73; Thu, 21 Jul 2016 18:52:23 +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 7C33A160A72 for ; Thu, 21 Jul 2016 20:52:22 +0200 (CEST) Received: (qmail 15410 invoked by uid 500); 21 Jul 2016 18:52:21 -0000 Mailing-List: contact dev-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@avro.apache.org Delivered-To: mailing list dev@avro.apache.org Received: (qmail 14886 invoked by uid 99); 21 Jul 2016 18:52:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2016 18:52:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DEC662C0E4E for ; Thu, 21 Jul 2016 18:52:20 +0000 (UTC) Date: Thu, 21 Jul 2016 18:52:20 +0000 (UTC) From: "Andrius Druzinis-Vitkus (JIRA)" To: dev@avro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Issue Comment Deleted] (AVRO-607) SpecificData.getSchema not thread-safe MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 21 Jul 2016 18:52:23 -0000 [ https://issues.apache.org/jira/browse/AVRO-607?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrius Druzinis-Vitkus updated AVRO-607: ----------------------------------------- Comment: was deleted (was: Hi [~busbey], thanks for that. I've just attempted to submit a patch. Added a brief release note but was surprised there wasn't a field for the actual patch! Apologies in advance for being a bit lost...) > SpecificData.getSchema not thread-safe > -------------------------------------- > > Key: AVRO-607 > URL: https://issues.apache.org/jira/browse/AVRO-607 > Project: Avro > Issue Type: Bug > Components: java > Affects Versions: 1.3.3, 1.8.1 > Reporter: Stephen Tu > Assignee: Andrius Druzinis-Vitkus > Priority: Blocker > Labels: newbie, patch > Fix For: 1.8.2 > > Attachments: AVRO-607.patch, AVRO-607.patch > > > SpecificData.getSchema uses a WeakHashMap to cache schemas, but WeakHashMap is not thread-safe, and the method itself is not synchronized. Seems like this could lead to the data structure getting corrupted. -- This message was sent by Atlassian JIRA (v6.3.4#6332)