[ 
https://issues.apache.org/jira/browse/HDDS-16222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ivan Andika updated HDDS-16222:
-------------------------------
    Description: 
We have incidents due to wrong usage of notifyStatusChanged in Ozone.
 * HDDS-11750: This is caused by deadlock when notifyStatusChanged submits 
another Ratis
 * HDDS-16029: This is caused by notifyStatusChanged blocking during 
ContainerBalancer Thread.join

One idea is to write a PMD rule to statically detect the following issues. See 
[https://pmd.github.io/pmd/pmd_userdocs_extending_writing_rules_intro.html]

Another idea is to use https://github.com/reactor/BlockHound

  was:
We have incidents due to wrong usage of notifyStatusChanged in Ozone.
 * HDDS-11750: This is caused by deadlock when notifyStatusChanged submits 
another Ratis
 * HDDS-16029: This is caused by notifyStatusChanged blocking during 
ContainerBalancer Thread.join

One idea is to write a PMD rule to statically detect the following issues. See 
https://pmd.github.io/pmd/pmd_userdocs_extending_writing_rules_intro.html


> Create a PMD rule to enforce that notifyStatusChanged cannot block
> ------------------------------------------------------------------
>
>                 Key: HDDS-16222
>                 URL: https://issues.apache.org/jira/browse/HDDS-16222
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Major
>
> We have incidents due to wrong usage of notifyStatusChanged in Ozone.
>  * HDDS-11750: This is caused by deadlock when notifyStatusChanged submits 
> another Ratis
>  * HDDS-16029: This is caused by notifyStatusChanged blocking during 
> ContainerBalancer Thread.join
> One idea is to write a PMD rule to statically detect the following issues. 
> See 
> [https://pmd.github.io/pmd/pmd_userdocs_extending_writing_rules_intro.html]
> Another idea is to use https://github.com/reactor/BlockHound



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to