[ 
https://issues.apache.org/jira/browse/MINIFICPP-1209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marton Szasz updated MINIFICPP-1209:
------------------------------------
    Description: 
We currently don't handle power events and this is more likely to lead to data 
loss e.g. in the case of power failure during suspend/sleep or certain 
timeouts/failures, especially when involving network connections.

We should try to flush our work queue, suspend processors and flush state 
storage when receiving a power event. We can restart work after wakeup.

We can use winapi on windows and dbus on linux to listen to such events.

  was:
We currently don't handle power events and this is more likely to lead to data 
loss e.g. in the case of power failure during suspend or certain 
timeouts/failures, especially when involving network connections.

We should try to flush our work queue, suspend processors and flush state 
storage when receiving a power event. We can restart work after wakeup.

We can use winapi on windows and dbus on linux to listen to such events.


> Gracefully handle power events like suspend/sleep/hibernate
> -----------------------------------------------------------
>
>                 Key: MINIFICPP-1209
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1209
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: New Feature
>            Reporter: Marton Szasz
>            Priority: Major
>
> We currently don't handle power events and this is more likely to lead to 
> data loss e.g. in the case of power failure during suspend/sleep or certain 
> timeouts/failures, especially when involving network connections.
> We should try to flush our work queue, suspend processors and flush state 
> storage when receiving a power event. We can restart work after wakeup.
> We can use winapi on windows and dbus on linux to listen to such events.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to