You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "dbgp2021 (Jira)" <ji...@apache.org> on 2021/03/15 08:04:00 UTC
[jira] [Created] (STORM-3753) Change String.getBytes() to
DFSUtil.string2Bytes(String) to avoid Unsupported Encoding Exception
dbgp2021 created STORM-3753:
-------------------------------
Summary: 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: Bug
Reporter: dbgp2021
Attachments: 1.patch
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 there can be no parameter. One recommended API is DFSUtil.string2Bytes(String) which can avoid this exception.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)