Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6232117E61 for ; Thu, 29 Jan 2015 20:14:35 +0000 (UTC) Received: (qmail 123 invoked by uid 500); 29 Jan 2015 20:14:35 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 99976 invoked by uid 500); 29 Jan 2015 20:14:35 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 99964 invoked by uid 99); 29 Jan 2015 20:14:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jan 2015 20:14:35 +0000 Date: Thu, 29 Jan 2015 20:14:35 +0000 (UTC) From: "Dustin Cote (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (HADOOP-11512) Use getTrimmedStrings when reading serialization keys MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-11512?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dustin Cote reassigned HADOOP-11512: ------------------------------------ Assignee: Ryan P > Use getTrimmedStrings when reading serialization keys > ----------------------------------------------------- > > Key: HADOOP-11512 > URL: https://issues.apache.org/jira/browse/HADOOP-11512 > Project: Hadoop Common > Issue Type: Bug > Components: conf > Affects Versions: 2.6.0 > Reporter: Harsh J > Assignee: Ryan P > Priority: Minor > > In the file {{hadoop-common-project/hadoop-common/src/main/java/org/apach= e/hadoop/io/serializer/SerializationFactory.java}}, we grab the IO_SERIALIZ= ATIONS_KEY config as Configuration#getStrings(=E2=80=A6) which does not tri= m the input. This could cause confusing user issues if someone manually ove= rrides the key in the XML files/Configuration object without using the dyna= mic approach. > The call should instead use Configuration#getTrimmedStrings(=E2=80=A6), s= o the whitespace is trimmed before the class names are searched on the clas= spath. -- This message was sent by Atlassian JIRA (v6.3.4#6332)