You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/10/07 04:49:21 UTC
[jira] [Commented] (APEXMALHAR-2281) ManagedState: race condition
with put & asyncGet and bucket size doesn't account for entries in file
cache
[ https://issues.apache.org/jira/browse/APEXMALHAR-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15554116#comment-15554116 ]
ASF GitHub Bot commented on APEXMALHAR-2281:
--------------------------------------------
GitHub user chandnisingh opened a pull request:
https://github.com/apache/apex-malhar/pull/444
APEXMALHAR-2281 fixed race condition and calculation of bucket size
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chandnisingh/apex-malhar APEXMALHAR-2281
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/apex-malhar/pull/444.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #444
----
commit a6bfdf77da671d5af1929903fbd4930eaef5a0ef
Author: Chandni Singh <cs...@apache.org>
Date: 2016-10-07T04:35:34Z
APEXMALHAR-2281 fixed race condition and calculation of bucket size
----
> ManagedState: race condition with put & asyncGet and bucket size doesn't account for entries in file cache
> ----------------------------------------------------------------------------------------------------------
>
> Key: APEXMALHAR-2281
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2281
> Project: Apache Apex Malhar
> Issue Type: Bug
> Reporter: Chandni Singh
> Assignee: Chandni Singh
>
> There are 2 bugs:
> 1. Race condition with put and asyncGet. put(...) inserts a bucketedValue in the flash with value = null first. It sets the value afterwords. There is a possibility that the reader thread will get BucketedValue from flash and read the value as null.
> 2. Bucket size doesn't account for entries in fileCache
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)