[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hadoop-dev
Subject:    [jira] [Created] (HADOOP-11512) Use getTrimmedStrings when reading serialization keys
From:       "Harsh J (JIRA)" <jira () apache ! org>
Date:       2015-01-27 14:07:37
Message-ID: JIRA.12770356.1422367632000.184209.1422367657157 () Atlassian ! JIRA
[Download RAW message or body]

Harsh J created HADOOP-11512:
--------------------------------

             Summary: 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
            Priority: Minor


In the file {{hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/serializer/SerializationFactory.java}}, \
we grab the IO_SERIALIZATIONS_KEY config as Configuration#getStrings(…) which does \
not trim the input. This could cause confusing user issues if someone manually \
overrides the key in the XML files/Configuration object without using the dynamic \
approach.

The call should instead use Configuration#getTrimmedStrings(…), so the whitespace \
is trimmed before the class names are searched on the classpath.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic