[
https://issues.apache.org/jira/browse/HDDS-429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16615092#comment-16615092
]
Anu Engineer commented on HDDS-429:
-----------------------------------
I am +1 on this patch. I am not sure if we can take a readlock() and promote it
to a writeLock() with a dead lock in Java. I think you can. But the
"{color:#000080}synchronized"{color} {color:#000080}works equally well. I will
commit this now. {color}
> StorageContainerManager lock optimization
> -----------------------------------------
>
> Key: HDDS-429
> URL: https://issues.apache.org/jira/browse/HDDS-429
> Project: Hadoop Distributed Data Store
> Issue Type: Improvement
> Components: SCM
> Reporter: Nanda kumar
> Assignee: Nanda kumar
> Priority: Blocker
> Attachments: HDDS-429.000.patch
>
>
> Currently, {{StorageContainerManager}} uses {{ReentrantLock}} for
> synchronization. We can replace this with {{ReentrantReadWriteLock}} to get
> better performance.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]