public void setSize(final int pos) {
            this.size = pos;
        }
Recover logic
@return the last recover position
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/file/AbstractFile.java