public boolean forEachFromTail(RecordProcessor<T> processor){
        try {
            currentLog.out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
        int logNameIndex = currentLog.logNameIndex;
        File logFile = new File(logDir, String.valueOf(logNameIndex));
        boolean isContinue = true;
        while (logFile.exists() && isContinue) {
            isContinue = readOneFile(logFile, processor, logNameIndex);
            logNameIndex--;
            logFile = new File(logDir, String.valueOf(logNameIndex));
        }
        return isContinue;
    }