[
https://issues.apache.org/jira/browse/APEXMALHAR-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236039#comment-15236039
]
ASF GitHub Bot commented on APEXMALHAR-2042:
--------------------------------------------
Github user ilooner commented on a diff in the pull request:
https://github.com/apache/incubator-apex-malhar/pull/237#discussion_r59287619
--- Diff:
library/src/test/java/org/apache/apex/malhar/lib/state/managed/ManagedStateImplTest.java
---
@@ -147,9 +150,9 @@ public void testCommitted()
Slice two = ManagedStateTestUtils.getSliceFor("2");
commitHelper(one, two);
Bucket.DefaultBucket defaultBucket =
(Bucket.DefaultBucket)testMeta.managedState.getBucket(0);
- Assert.assertEquals("value of one", one,
defaultBucket.getCommittedData().get(one).getValue());
-
- Assert.assertNull("value of two",
defaultBucket.getCommittedData().get(two));
+ Assert.assertEquals("value of one", one,
defaultBucket.getCommittedData().firstEntry().getValue().get(one)
+ .getValue());
--- End diff --
This one is longer than 120.
> Managed State - value for a key is null when the bucket is bumped off state
> and window data is still not committed
> ------------------------------------------------------------------------------------------------------------------
>
> Key: APEXMALHAR-2042
> URL: https://issues.apache.org/jira/browse/APEXMALHAR-2042
> Project: Apache Apex Malhar
> Issue Type: Bug
> Affects Versions: 3.4.0
> Reporter: Chandni Singh
> Assignee: Timothy Farkas
>
> When a bucket data is collected for transferring to data files and if the
> bucket at the same time is triggered to free memory then for a brief time any
> queries for a key in the bucket will not return any value.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)