When I try to to create an object of new IndexSearcher(fsDir) class it is throwing IOException read past EOF. The search index is not RAM based, it is NFS based (used FSDirectory lucene class).
I googled and got that this one
There is not permission issue, neither locked, I checked with lockhunter
So there must be write permission and none is using that directory.
It was working the past 2-3 months. Yesterday suddenly stopped working, all indexed files in the folder.
What else may cause to this exception? Is there something like if index is 2-3 month old (some period), then it gets expired and gives this exception?
I got the answer, spending a lot of time on it, It will give that exception(IOException read past EOF):
For my case It was corrupted :(. But Exception does not say anything about this(Could tell some
FIleCurroptedException). This is may help to someone else.