Details
Description
When destroy IndexService, the indexFileList should be cleared with write lock guarantee, but destroy method uses read lock insted.
public void destroy() { try { this.readWriteLock.readLock().lock(); for (IndexFile f : this.indexFileList) { f.destroy(1000 * 3); } this.indexFileList.clear(); } catch (Exception e) { log.error("destroy exception", e); } finally { this.readWriteLock.readLock().unlock(); } }