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

ASF GitHub Bot logged work on HDFS-16272:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Oct/21 07:45
            Start Date: 13/Oct/21 07:45
    Worklog Time Spent: 10m 
      Work Description: cndaimin opened a new pull request #3548:
URL: https://github.com/apache/hadoop/pull/3548


   Fix the int overflow problem.


-- 
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: 664490)
    Remaining Estimate: 0h
            Time Spent: 10m

> Int overflow in computing safe length during EC block recovery
> --------------------------------------------------------------
>
>                 Key: HDFS-16272
>                 URL: https://issues.apache.org/jira/browse/HDFS-16272
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: 3.1.1
>    Affects Versions: 3.3.0, 3.3.1
>         Environment: Cluster settings: EC RS-8-2-256k, Block Size 1GiB.
>            Reporter: daimin
>            Priority: Critical
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> There exists an int overflow problem in StripedBlockUtil#getSafeLength, which 
> will produce a negative or zero length:
> 1. With negative length, it fails to the later >=0 check, and will crash the 
> BlockRecoveryWorker thread, which make the lease recovery operation unable to 
> finish.
> 2. With zero length, it passes the check, and directly truncate the block 
> size to zero, leads to data lossing.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to