hourglass - archiving expired indexes

22 views
Skip to first unread message

Devi

unread,
Apr 19, 2012, 10:04:48 AM4/19/12
to zoie
Hello,

From the hourglass wiki [1], I see that it is possible to implement
hooks to handle expired index. Has anybody tried this out to archive
the expired indices? Any ideas of how to go about this?

[1]: https://linkedin.jira.com/wiki/display/ZOIE/HourGlass+-+Forward-Rolling+Indexing

Thanks,
~Devi

Devi

unread,
Jun 18, 2012, 8:51:41 AM6/18/12
to zoie
> [1]:https://linkedin.jira.com/wiki/display/ZOIE/HourGlass+-+Forward-Rolli...

It might be of help to anybody who is trying to do the same thing. In
`trim` function of HourglassReaderManager.java[1], comment the line
`FileUtil.rmDir(dir.getDirectory());` and write couple of lines of
code to move that to an archive.

[1]: https://github.com/senseidb/zoie/blob/master/zoie-core/src/main/java/proj/zoie/hourglass/impl/HourglassReaderManager.java,
line number 133
Reply all
Reply to author
Forward
0 new messages