Uploaded image for project: 'Apache Apex Malhar'
  1. Apache Apex Malhar
  2. APEXMALHAR-2262

lock on AbstractManagedStateImpl.getValueFromBucketSync is too wide

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            brightchen Bright Chen
            brightchen Bright Chen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: