[
https://issues.apache.org/jira/browse/STORM-3753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778691#comment-17778691
]
Richard Zowalla commented on STORM-3753:
----------------------------------------
Eventhubs was removed with
https://issues.apache.org/jira/projects/STORM/issues/STORM-3988?filter=allissues
> Change String.getBytes() to DFSUtil.string2Bytes(String) to avoid Unsupported
> Encoding Exception
> ------------------------------------------------------------------------------------------------
>
> Key: STORM-3753
> URL: https://issues.apache.org/jira/browse/STORM-3753
> Project: Apache Storm
> Issue Type: Improvement
> Reporter: dbgp2021
> Priority: Major
> Attachments: 1.patch
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> Hello,
> I found that DFSUtil.string2Bytes(String) can be used here instead of
> String.getBytes(). Otherwise, the API String.getBytes() may cause potential
> risk of UnsupportedEncodingException since the behavior of this method when
> the string cannot be encoded in the default charset is unspecified. One
> recommended API is DFSUtil.string2Bytes(String) which provides more control
> over the encoding process and can avoid this exception.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)