[ 
https://issues.apache.org/jira/browse/HIVE-24903?focusedWorklogId=628081&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-628081
 ]

ASF GitHub Bot logged work on HIVE-24903:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 27/Jul/21 00:09
            Start Date: 27/Jul/21 00:09
    Worklog Time Spent: 10m 
      Work Description: github-actions[bot] commented on pull request #2127:
URL: https://github.com/apache/hive/pull/2127#issuecomment-887111678


   This pull request has been automatically marked as stale because it has not 
had recent activity. It will be closed if no further activity occurs.
   Feel free to reach out on the [email protected] list if the patch is in 
need of reviews.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 628081)
    Time Spent: 40m  (was: 0.5h)

> Change String.getBytes() to DFSUtil.string2Bytes(String) to avoid Unsupported 
> Encoding Exception
> ------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-24903
>                 URL: https://issues.apache.org/jira/browse/HIVE-24903
>             Project: Hive
>          Issue Type: Bug
>            Reporter: dbgp2021
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: 1.patch
>
>          Time Spent: 40m
>  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.3.4#803005)

Reply via email to