On Mon, Mar 19, 2018 at 2:24 PM, Yakov Zhdanov <yzhda...@apache.org> wrote:
> Andrey Gura, > > Why should we have any FailureHandler abstraction? We already have it - > this is EventListener. In my view it is better (and cleaner design) to add > events (similar to, for > example, org.apache.ignite.events.EventType#EVT_NODE_SEGMENTED) like > EVT_IGNITE_OOME, EVT_SYS_WORKER_FAILED and fire events accordingly to the > situation + execute configured system logic. We have exactly same way with > segmentation. We have policy which defines how system reacts and also allow > user to add event listeners. > Yakov, how would it be possible to fire the events if Ignite is not in operational state? For example, what can a user do if the Java application ran out of memory?