Re: Cache directory full path on disk

2022-07-11 Thread Gianluca Bonetti
Hello Linux rmdir command deletes only non-empty directories. Another option for you is to commit the cleaning source code to Apache Ignite as open source contributor, either as fix on the destroy cache API, or other new APIs. To my humble point of view, removing the empty directory is not missi

Re: Cache directory full path on disk

2022-07-11 Thread Sumit Deshinge
Hi, Thanks for your suggestion. Before I go with custom delete logic with checking each directory empty or not and based on that deleting it, I wanted to see if ignite gives any such functionality out of the box through its APIs. On Fri, Jul 8, 2022 at 9:19 PM Gianluca Bonetti wrote: > Hello Su

Re: Cache directory full path on disk

2022-07-08 Thread Gianluca Bonetti
Hello Sumit You can simply clean up with a scheduled cronjob does executes rmdir, if the directory is not empty rmdir will not proceed. Cheers Gianluca On Fri, 8 Jul 2022 at 15:38, Sumit Deshinge wrote: > Any pointers here? > > On Wed, Jun 29, 2022 at 12:55 PM Sumit Deshinge > wrote: > >> Aft

Re: Cache directory full path on disk

2022-07-08 Thread Sumit Deshinge
Any pointers here? On Wed, Jun 29, 2022 at 12:55 PM Sumit Deshinge wrote: > After cache.destroy operation is performed, it clears all the cache data, > but directory for that cache exists with empty data. > I am creating many caches for specific workflow and destroy them, same > keeps repeating

Re: Cache directory full path on disk

2022-06-29 Thread Sumit Deshinge
After cache.destroy operation is performed, it clears all the cache data, but directory for that cache exists with empty data. I am creating many caches for specific workflow and destroy them, same keeps repeating for each workflow. This results into cache directories lying on the machine and that

Re: Cache directory full path on disk

2022-06-28 Thread Stephen Darlington
What are you trying to achieve? > On 28 Jun 2022, at 13:14, Sumit Deshinge wrote: > > How do I get a full cache directory path? > E.g. ignite_storage_path/host/cache_name > > I want this full directory path from the machine where cache data is > physically being stored. (not only storage direc

Cache directory full path on disk

2022-06-28 Thread Sumit Deshinge
How do I get a full cache directory path? E.g. ignite_storage_path/host/cache_name I want this full directory path from the machine where cache data is physically being stored. (not only storage directory path, but actual cache data directory) Is there any ignite API for the same? -- Regards, Su