You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2018/05/23 18:57:00 UTC
[jira] [Commented] (HDFS-13611) Unsafe use of Text as a
ConcurrentHashMap key in PBHelperClient
[ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org