[ 
https://issues.apache.org/jira/browse/HDFS-13611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16487849#comment-16487849
 ] 

Andrew Wang commented on HDFS-13611:
------------------------------------

Simple patch attached, getFixedByteString(Text) wasn't even useful anyway since 
it was just calling toString internally.

> Unsafe use of Text as a ConcurrentHashMap key in PBHelperClient
> ---------------------------------------------------------------
>
>                 Key: HDFS-13611
>                 URL: https://issues.apache.org/jira/browse/HDFS-13611
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.10.0, 3.2.0, 3.1.1, 3.0.4
>            Reporter: Andrew Wang
>            Assignee: Andrew Wang
>            Priority: Major
>         Attachments: HDFS-13611.001.patch
>
>
> Follow on to HDFS-13601, a bug spotted by [~tlipcon]: since Text is mutable, 
> it's not safe to use as a hash map key.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to