ZF-2779: chmod in Zend_Search_Lucene_Storage_Directory_Filesystem causes problems
[reference issue ZF-1429] Only file owners can chmod files. Since the apache user is usually a restricted user, with no shell, it's difficult to fire off cron jobs to update indexes out of band. This means that typically another user should do this. But the other user needs to take over ownership of the index files, and in that case, apache can no longer read the indexes and search breaks.
I don't see a problem with ZSL checking to see if the files are writable because that level of permission can be assigned to a group (apache user + indexer user). In that case, search only needs to check if the files are readable, no?
I haven't seen any reason for ZSL to chmod files (am I missing something?), and doing so breaks good OS admin practices.