- All Implemented Interfaces:
- Runnable
public class IndexCleaner
extends Thread
IndexCleaner is thread that locks an index directory and performs a clean up.
That means according to deadBarrels list (merge out barrels that are kept
alive only for readers that may have opened them) and current index constancy
requests deletes all really dead barrels, not used by anyone.
It takes oldest valid const request, and according to its creation time it
goes over dead barrels list. Every dead barrel is connected with a commit
time when it was merged out. All barrels that were merged out before the
oldest const request are deleted.
- Author:
- Jakub Podhorny