Hello!

After reviewing IGFS code, I think that you can do the following:

You should save all file paths that are being migrated, and then call
await(collectionWithAllFilePaths) on IgfsImpl. If it's a huge number of
files, I imagine you can do this in batches.

It will do the same synchronous wait that DUAL_SYNC would do, just from a
different entry point. After await() returns you are safe to close IgfsImpl
and shutdown your cluster.

Note that I would like to have the same behaviour for IgfsImpl.close(cancel:
false), but it's NOT there yet. I have filed
https://issues.apache.org/jira/browse/IGNITE-7356 - do not hesitate to
comment.

Regards,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to