[
https://issues.apache.org/jira/browse/APEXMALHAR-2262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
bright chen updated APEXMALHAR-2262:
------------------------------------
Summary: lock on AbstractManagedStateImpl.getValueFromBucketSync is too
wide (was: lock on is too AbstractManagedStateImpl.getValueFromBucketSync wide)
> lock on AbstractManagedStateImpl.getValueFromBucketSync is too wide
> -------------------------------------------------------------------
>
> Key: APEXMALHAR-2262
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2262
> Project: Apache Apex Malhar
> Issue Type: Improvement
> Reporter: bright chen
> Assignee: bright chen
>
> The Managed State used a lot of lock, which could impact a lot on
> performance.
> AbstractManagedStateImpl.getValueFromBucketSync(long, long, Slice) lock the
> buck to get value, But if the value still in memory, the lock is not
> necessary as flash is ConcurrentMap.
> probably AbstractManagedStateImpl should only lock when add/remove bucket.
> And bucket handle read/write lock inside bucket
> -
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)