You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (JIRA)" <ji...@apache.org> on 2019/08/05 08:35:00 UTC
[jira] [Resolved] (NIFI-6507) ConsumeWindowsEventLog should renew
failed subscription
[ https://issues.apache.org/jira/browse/NIFI-6507?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard resolved NIFI-6507.
----------------------------------
Resolution: Fixed
Fix Version/s: 1.10.0
> ConsumeWindowsEventLog should renew failed subscription
> -------------------------------------------------------
>
> Key: NIFI-6507
> URL: https://issues.apache.org/jira/browse/NIFI-6507
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Reporter: Koji Kawamura
> Assignee: Koji Kawamura
> Priority: Major
> Fix For: 1.10.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Current implementation has some code for specific 15011 error code. The processor uses EvtSubscribeStrict flag which produces ERROR_EVT_QUERY_RESULT_STALE (15011) event when event records are missing. Currently, the processor only logs the error code. But does not renew subscription.
> [https://docs.microsoft.com/en-us/windows/desktop/api/winevt/nc-winevt-evt_subscribe_callback]
>
> When error 15011 happens, the processor stopped reading further events. It looks as if the processor hangs. The processor doesn't renew subscription because it thinks it already has a valid subscription. The current implementation determines if a subscription is valid by these lines of code:
> {code:java}
> private boolean isSubscribed() {
> return subscriptionHandle != null && subscriptionHandle.getPointer() != null;
> }{code}
> [https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-windows-event-log-bundle/nifi-windows-event-log-processors/src/main/java/org/apache/nifi/processors/windows/event/log/ConsumeWindowsEventLog.java#L242-L244]
> If already subscribed, the processor polls received messages from the internal queue. But since the subscription has encountered an error, no further messages available.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)