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

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

                Author: ASF GitHub Bot
            Created on: 06/Jun/22 00:36
            Start Date: 06/Jun/22 00:36
    Worklog Time Spent: 10m 
      Work Description: slfan1989 commented on PR #4367:
URL: https://github.com/apache/hadoop/pull/4367#issuecomment-1146920391

   Thank you for your contribution, but I still have some concerns about 
HDFS-16534. I feel that for a new feature, multiple prs should not be used to 
fix the problem separately, which makes the code very difficult to read. I 
recommend creating it under HDFS-15382 A subtask to fix HDFS-16598 and 
HDFS-16600 together, @ZanderXu @MingXiangLi.




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

    Worklog Id:     (was: 778479)
    Time Spent: 2h  (was: 1h 50m)

> Deadlock on DataNode
> --------------------
>
>                 Key: HDFS-16600
>                 URL: https://issues.apache.org/jira/browse/HDFS-16600
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: ZanderXu
>            Assignee: ZanderXu
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> The UT 
> org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.testSynchronousEviction 
> failed, because happened deadlock, which  is introduced by 
> [HDFS-16534|https://issues.apache.org/jira/browse/HDFS-16534]. 
> DeadLock:
> {code:java}
> // org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.createRbw line 1588 
> need a read lock
> try (AutoCloseableLock lock = lockManager.readLock(LockLevel.BLOCK_POOl,
>         b.getBlockPoolId()))
> // org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.evictBlocks line 
> 3526 need a write lock
> try (AutoCloseableLock lock = lockManager.writeLock(LockLevel.BLOCK_POOl, 
> bpid))
> {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to