You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/11 10:32:04 UTC
[jira] [Commented] (FLINK-4636) AbstractCEPPatternOperator fails to
restore state
[ https://issues.apache.org/jira/browse/FLINK-4636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006215#comment-16006215 ]
ASF GitHub Bot commented on FLINK-4636:
---------------------------------------
Github user kl0u commented on the issue:
https://github.com/apache/flink/pull/2568
Hi @jaxbihani ! As you may have noticed, the `CEP` library has gone through a major refactoring and now the JIRA that this PR addresses is obsolete. Could you please close this PR?
> AbstractCEPPatternOperator fails to restore state
> -------------------------------------------------
>
> Key: FLINK-4636
> URL: https://issues.apache.org/jira/browse/FLINK-4636
> Project: Flink
> Issue Type: Bug
> Components: CEP
> Affects Versions: 1.2.0, 1.1.2
> Reporter: Fabian Hueske
> Assignee: Jagadish Bihani
>
> The {{restoreState()}} of the {{AbstractCEPPatternOperator}} restores the a Java {{PriorityQueue}}. For that it first reads the number of elements to insert and then creates a {{PriorityQueue}} object. However, Java's {{PriorityQueue}} cannot be instantiated with an initial capacity of {{0}}, which is not checked.
> In case of an empty queue, the {{PriorityQueue}} should be instantiated with an initial size of {{1}}.
> See http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Problem-with-CEPPatternOperator-when-taskmanager-is-killed-tp9024.html
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)