/** * Invoked to mark a local index as bad i.e. where exception was thrown when index was * opened for query. It can h */ public void markBadIndexForRead(String path, Throwable e) { BadIndexInfo badIndex = badIndexesForRead.get(path); if (badIndex == null) { badIndexesForRead.put(path, new BadIndexInfo(path, e, false)); log.error("Could not access the Fulltext index at [{}]", path, e); } else { badIndex.failedAccess(e); log.error("Could not access the Fulltext index at [{}] . {}", path, badIndex.getStats(), e); } }
/** * Invoked to mark a persisted index as bad i.e. where exception is thrown when index is reopened * after update * * @param path index path * @param e exception */ public void markBadPersistedIndex(String path, Throwable e) { BadIndexInfo badIndex = badPersistedIndexes.get(path); if (badIndex == null) { badPersistedIndexes.put(path, new BadIndexInfo(path, e, true)); log.error("Could not open the Fulltext index at [{}]", path, e); } else { badIndex.failedAccess(e); log.error("Could not open the Fulltext index at [{}] . {}", path, badIndex.getStats(), e); } }