Hi Jaipal, All data should be flushed to back store automatically on graceful shutdown.
On Wed, Apr 5, 2017 at 10:44 AM, Jaipal Reddy <dandujaipalre...@gmail.com> wrote: > Hii, > > We are using Apache Ignite for caching and using its writeBehind feature > for pushing updated data asynchronoulsy to Oracle DB. The following are > relevant properties from our ignite cache configuration. > > > > > *<property name="writeBehindBatchSize" value="512" /><property name=" > writeBehindFlushFrequency" value="60000" /><property name="backups" > value="0"/>* > With these properties, what I understand is IgniteCacheStore is invoked > either after 512 ache entries are updated or at the end of 60 seconds( > which ever is earlier). Say, I initiate a graceful shutdown (not a server > crash) of the Ignite Instance and I have 10 records which are updated in > cache but are NOT YET updated to DB. During the graceful shutdown, will the > IgniteCacheStore be automatically invoked and flush the 10 updated records > to DB or will I lose the update on these 10 records ? > > If IgniteCacheStore is not automatically invoked during Graceful Shutdown, > is there a way I can ensure that all my records are updated to the DB > during the shutdown(say Cache Event Listeners or shutdown hooks etc..). > > Regards, > Jaipal > -- Best regards, Andrey V. Mashenkov